mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-04-24 16:40:17 +00:00
Fix for GLES2
This commit is contained in:
parent
fa140c18cc
commit
a48f8c3714
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue