summaryrefslogtreecommitdiffhomepage
path: root/examples/resources/shaders/glsl100/grayscale.fs
diff options
context:
space:
mode:
authorvictorfisac <[email protected]>2016-06-10 00:59:48 +0200
committervictorfisac <[email protected]>2016-06-10 00:59:48 +0200
commit77f599885dade4930fb01baca22db6e2ae0c9f20 (patch)
tree5d5b4ca2dc079b74c9228b8f1174b7e54891fe1b /examples/resources/shaders/glsl100/grayscale.fs
parent7b07b68bfdf03f13ed705188394cb7d26f4c2594 (diff)
downloadraylib-77f599885dade4930fb01baca22db6e2ae0c9f20.tar.gz
raylib-77f599885dade4930fb01baca22db6e2ae0c9f20.zip
Fixed GLSL 100 shaders
texture() doesn't exist in glsl 100, it must use texture2D().
Diffstat (limited to 'examples/resources/shaders/glsl100/grayscale.fs')
-rw-r--r--examples/resources/shaders/glsl100/grayscale.fs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/resources/shaders/glsl100/grayscale.fs b/examples/resources/shaders/glsl100/grayscale.fs
index f92ec335..cf857488 100644
--- a/examples/resources/shaders/glsl100/grayscale.fs
+++ b/examples/resources/shaders/glsl100/grayscale.fs
@@ -15,7 +15,7 @@ uniform vec4 fragTintColor;
void main()
{
// Texel color fetching from texture sampler
- vec4 texelColor = texture(texture0, fragTexCoord)*fragTintColor*fragColor;
+ vec4 texelColor = texture2D(texture0, fragTexCoord)*fragTintColor*fragColor;
// Convert texel color to grayscale using NTSC conversion weights
float gray = dot(texelColor.rgb, vec3(0.299, 0.587, 0.114));