Fix shader precision (#19695)

This commit is contained in:
metalgearsloth
2023-08-31 23:26:39 +10:00
committed by GitHub
parent f9f6e424b6
commit e0f0879fce

View File

@@ -7,7 +7,7 @@ const bool below = true;
void fragment()
{
highp vec4 tex = zTexture(UV);
highp float modifier = (UV.y > c ^^ !below) ? 1 : alphaModifier;
highp float modifier = (UV.y > c ^^ !below) ? 1.0f : alphaModifier;
COLOR = vec4(tex.x, tex.y, tex.z, tex.w * modifier);
}