aboutsummaryrefslogtreecommitdiff
path: root/examples/resources/shaders/glsl330
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-07-12 01:54:47 +0200
committerraysan5 <raysan5@gmail.com>2016-07-12 01:54:47 +0200
commit3876f19d6a385001a4238ec27bcf3d7643dd190f (patch)
tree6d0540de86b6f81aa1c240063876ce04fff217a0 /examples/resources/shaders/glsl330
parent22672bc738ee0923fd43c431cb41d0bf4d8dd96c (diff)
downloadraylib-3876f19d6a385001a4238ec27bcf3d7643dd190f.tar.gz
raylib-3876f19d6a385001a4238ec27bcf3d7643dd190f.zip
Corrected some issues on OpenGL ES
Diffstat (limited to 'examples/resources/shaders/glsl330')
-rw-r--r--examples/resources/shaders/glsl330/swirl.fs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/resources/shaders/glsl330/swirl.fs b/examples/resources/shaders/glsl330/swirl.fs
index 80c16cc9..5d238ac9 100644
--- a/examples/resources/shaders/glsl330/swirl.fs
+++ b/examples/resources/shaders/glsl330/swirl.fs
@@ -6,7 +6,7 @@ in vec4 fragColor;
// Input uniform values
uniform sampler2D texture0;
-uniform vec4 fragTintColor;
+uniform vec4 colDiffuse;
// Output fragment color
out vec4 finalColor;
@@ -40,7 +40,7 @@ void main()
}
tc += center;
- vec3 color = texture(texture0, tc/texSize).rgb;
+ vec4 color = texture2D(texture0, tc/texSize)*colDiffuse*fragColor;;
- finalColor = vec4(color, 1.0);;
+ finalColor = vec4(color.rgb, 1.0);;
} \ No newline at end of file