aboutsummaryrefslogtreecommitdiff
path: root/shaders/glsl100/grayscale.fs
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/glsl100/grayscale.fs')
-rw-r--r--shaders/glsl100/grayscale.fs2
1 files changed, 1 insertions, 1 deletions
diff --git a/shaders/glsl100/grayscale.fs b/shaders/glsl100/grayscale.fs
index c76dd8af..15174ea5 100644
--- a/shaders/glsl100/grayscale.fs
+++ b/shaders/glsl100/grayscale.fs
@@ -15,7 +15,7 @@ uniform vec4 colDiffuse;
void main()
{
// Texel color fetching from texture sampler
- vec4 texelColor = texture(texture0, fragTexCoord)*colDiffuse*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));