diff options
| author | raysan5 <raysan5@gmail.com> | 2016-07-12 01:54:47 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-07-12 01:54:47 +0200 |
| commit | 3876f19d6a385001a4238ec27bcf3d7643dd190f (patch) | |
| tree | 6d0540de86b6f81aa1c240063876ce04fff217a0 /examples/resources/shaders/glsl330 | |
| parent | 22672bc738ee0923fd43c431cb41d0bf4d8dd96c (diff) | |
| download | raylib-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.fs | 6 |
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 |
