lightpreview: fix glsl syntax error

This commit is contained in:
Eric Wasylishen 2023-08-05 20:21:02 -06:00
parent 9f7ba65758
commit 6b83f36b6f
1 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ void main() {
if (style == 0xFFu)
break;
lmcolor += texture(lightmap_sampler, vec3(lightmap_uv, (float) style)).rgb * style_scalars[style];
lmcolor += texture(lightmap_sampler, vec3(lightmap_uv, float(style))).rgb * style_scalars[style];
}
}
@ -282,7 +282,7 @@ void main() {
if (style == 0xFFu)
break;
lmcolor += texture(lightmap_sampler, vec3(lightmap_uv, (float) style)).rgb * style_scalars[style];
lmcolor += texture(lightmap_sampler, vec3(lightmap_uv, float(style))).rgb * style_scalars[style];
}
// 2.0 for overbright