mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-31 19:29:18 -05:00
Fixed GLSL 100 shaders
texture() doesn't exist in glsl 100, it must use texture2D().
This commit is contained in:
@ -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));
|
||||
|
||||
Reference in New Issue
Block a user