Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LibAVQt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nik | Klampfradler
LibAVQt
Commits
22d8faad
Commit
22d8faad
authored
4 years ago
by
Silas Della Contrada
Browse files
Options
Downloads
Patches
Plain Diff
Fixed shaders for OpenGL ES
parent
7e6f484e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AVQt/texture.fsh
+6
-0
6 additions, 0 deletions
AVQt/texture.fsh
AVQt/texture.vsh
+10
-4
10 additions, 4 deletions
AVQt/texture.vsh
with
16 additions
and
4 deletions
AVQt/texture.fsh
+
6
−
0
View file @
22d8faad
// fragment shader
#ifdef GL_ES
// Set default precision to medium
precision mediump int;
precision mediump float;
#endif
in vec4 fragColor;// input: interpolated color as rgba-value
in vec2 texCoord;// input: texture coordinate (xy-coordinates)
out vec4 finalColor;// output: final color value as rgba-value
...
...
This diff is collapsed.
Click to expand it.
AVQt/texture.vsh
+
10
−
4
View file @
22d8faad
// vertex shader
layout(location = 0) in vec3 position; // input: attribute with index '0' with 3 elements per vertex
#ifdef GL_ES
// Set default precision to medium
precision mediump int;
precision mediump float;
#endif
layout(location = 0) in vec3 position;// input: attribute with index '0' with 3 elements per vertex
//layout(location = 1) in vec3 color; // input: attribute with index '1' with 3 elements (=rgb) per vertex
layout(location = 1) in vec2 texcoords;
// input: attribute with index '2' with 2 elements per vertex
layout(location = 1) in vec2 texcoords;// input: attribute with index '2' with 2 elements per vertex
//layout(location = 2) in float texnr; // input: attribute with index '3' with 1 float per vertex
out vec4 fragColor;
// output: computed fragmentation color
out vec2 texCoord;
// output: computed texture coordinates
out vec4 fragColor;// output: computed fragmentation color
out vec2 texCoord;// output: computed texture coordinates
//flat out float texID; // output: texture ID - mind the 'flat' attribute!
void main() {
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment