aboutsummaryrefslogtreecommitdiff
path: root/examples/resources/shaders/glsl100/grayscale.fs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/resources/shaders/glsl100/grayscale.fs')
-rw-r--r--examples/resources/shaders/glsl100/grayscale.fs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/resources/shaders/glsl100/grayscale.fs b/examples/resources/shaders/glsl100/grayscale.fs
index cf857488..15174ea5 100644
--- a/examples/resources/shaders/glsl100/grayscale.fs
+++ b/examples/resources/shaders/glsl100/grayscale.fs
@@ -8,14 +8,14 @@ varying vec4 fragColor;
// Input uniform values
uniform sampler2D texture0;
-uniform vec4 fragTintColor;
+uniform vec4 colDiffuse;
// NOTE: Add here your custom variables
void main()
{
// Texel color fetching from texture sampler
- vec4 texelColor = texture2D(texture0, fragTexCoord)*fragTintColor*fragColor;
+ vec4 texelColor = texture2D(texture0, fragTexCoord)*colDiffuse*fragColor;
// Convert texel color to grayscale using NTSC conversion weights
float gray = dot(texelColor.rgb, vec3(0.299, 0.587, 0.114));