mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-18 15:51:46 +00:00
out is a keyword in shaders and can't be used as a variable name. (#1558)
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
This commit is contained in:
@@ -19,7 +19,7 @@ void main()
|
|||||||
vec4 texelColor1 = texture(texture1, fragTexCoord);
|
vec4 texelColor1 = texture(texture1, fragTexCoord);
|
||||||
|
|
||||||
float x = fract(fragTexCoord.s);
|
float x = fract(fragTexCoord.s);
|
||||||
float out = smoothstep(0.4, 0.6, x);
|
float outVal = smoothstep(0.4, 0.6, x);
|
||||||
|
|
||||||
finalColor = mix(texelColor0, texelColor1, out);
|
finalColor = mix(texelColor0, texelColor1, outVal);
|
||||||
}
|
}
|
Reference in New Issue
Block a user