aboutsummaryrefslogtreecommitdiff
path: root/examples/resources/shaders/shapes_grayscale.fs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/resources/shaders/shapes_grayscale.fs')
-rw-r--r--examples/resources/shaders/shapes_grayscale.fs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/resources/shaders/shapes_grayscale.fs b/examples/resources/shaders/shapes_grayscale.fs
index 1b778871..23ba9153 100644
--- a/examples/resources/shaders/shapes_grayscale.fs
+++ b/examples/resources/shaders/shapes_grayscale.fs
@@ -2,11 +2,11 @@
uniform sampler2D texture0;
varying vec2 fragTexCoord;
-varying vec4 fragColor;
+varying vec4 fragTintColor;
void main()
{
- vec4 base = texture2D(texture0, fragTexCoord)*fragColor;
+ vec4 base = texture2D(texture0, fragTexCoord)*fragTintColor;
// Convert to grayscale using NTSC conversion weights
float gray = dot(base.rgb, vec3(0.299, 0.587, 0.114));