FREESCAPE: make triangle shader more compatible with gles2 (again)

This commit is contained in:
neuromancer 2023-04-07 08:11:25 +02:00
parent 583b8b2a4b
commit a8b267d421

View File

@ -8,8 +8,8 @@ varying vec4 var_color;
void main()
{
if (UBOOL_TEST(useStipple)) {
vec2 coord = ivec2(gl_FragCoord.xy - 0.5);
if (stipple[int(mod(coord.x, 8.) + mod(coord.y, 8.) * 8)] == 0)
ivec2 coord = ivec2(gl_FragCoord.xy - 0.5);
if (stipple[int(mod(float(coord.x), 8.) + mod(float(coord.y), 8.) * 8.)] == 0)
discard;
}