summaryrefslogtreecommitdiffhomepage
path: root/shaders/gl330/grayscale.fs
diff options
context:
space:
mode:
authorRay <[email protected]>2016-02-20 01:09:47 +0100
committerRay <[email protected]>2016-02-20 01:09:47 +0100
commit4b6e6d4dd45fc3a47b82af7eeb60871140a7eccf (patch)
treed9ee679c3b0bc5d4a20b31930994deb0e4c37948 /shaders/gl330/grayscale.fs
parentf582ab06add085594f2579ee6e7d625212abd204 (diff)
parent954ced21a42eb489ad382b4c00406a28778fee41 (diff)
downloadraylib-4b6e6d4dd45fc3a47b82af7eeb60871140a7eccf.tar.gz
raylib-4b6e6d4dd45fc3a47b82af7eeb60871140a7eccf.zip
Merge pull request #83 from raysan5/develop
Develop branch integration
Diffstat (limited to 'shaders/gl330/grayscale.fs')
-rw-r--r--shaders/gl330/grayscale.fs6
1 files changed, 3 insertions, 3 deletions
diff --git a/shaders/gl330/grayscale.fs b/shaders/gl330/grayscale.fs
index 38337e00..b3a695bf 100644
--- a/shaders/gl330/grayscale.fs
+++ b/shaders/gl330/grayscale.fs
@@ -5,16 +5,16 @@ in vec2 fragTexCoord;
out vec4 fragColor;
uniform sampler2D texture0;
-uniform vec4 tintColor;
+uniform vec4 fragTintColor;
// NOTE: Add here your custom variables
void main()
{
- vec4 base = texture2D(texture0, fragTexCoord)*tintColor;
+ vec4 base = texture(texture0, fragTexCoord)*fragTintColor;
// Convert to grayscale using NTSC conversion weights
float gray = dot(base.rgb, vec3(0.299, 0.587, 0.114));
- fragColor = vec4(gray, gray, gray, tintColor.a);
+ fragColor = vec4(gray, gray, gray, fragTintColor.a);
} \ No newline at end of file