Replaced deprecated texture2D() function by texture()

This commit is contained in:
raysan5 2016-01-16 12:53:48 +01:00
commit 03c82605a0

View file

@ -9,16 +9,16 @@ uniform vec4 fragTintColor;
// NOTE: Add here your custom variables
float hatchOffsetY = 5.0f;
float lumThreshold01 = 0.9f;
float lumThreshold02 = 0.7f;
float lumThreshold03 = 0.5f;
float lumThreshold04 = 0.3f;
float hatchOffsetY = 5.0;
float lumThreshold01 = 0.9;
float lumThreshold02 = 0.7;
float lumThreshold03 = 0.5;
float lumThreshold04 = 0.3;
void main()
{
vec3 tc = vec3(1.0, 1.0, 1.0);
float lum = length(texture2D(texture0, fragTexCoord).rgb);
float lum = length(texture(texture0, fragTexCoord).rgb);
if (lum < lumThreshold01)
{