Fix for GLES2

This commit is contained in:
Emile Belanger 2021-03-07 18:32:03 +00:00
parent fa140c18cc
commit a48f8c3714

View file

@ -272,20 +272,19 @@ void SetMaterialProps(inout Material material, vec2 texCoord)
material.Base = getTexel(texCoord.st);
#if (DEF_TEXTURE_FLAGS & 0x1)
material.Bright = texture(brighttexture, texCoord.st);
material.Bright = texture2D(brighttexture, texCoord.st);
#endif
#if (DEF_TEXTURE_FLAGS & 0x2)
{
vec4 Detail = texture(detailtexture, texCoord.st * uDetailParms.xy) * uDetailParms.z;
vec4 Detail = texture2D(detailtexture, texCoord.st * uDetailParms.xy) * uDetailParms.z;
material.Base *= Detail;
}
#endif
#if (DEF_TEXTURE_FLAGS & 0x4)
{
material.Glow = texture(glowtexture, texCoord.st);
material.Glow = texture2D(glowtexture, texCoord.st);
}
#endif