From 6b83f36b6f829d07e1162e4031e2aa9d61d2fcea Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 5 Aug 2023 20:21:02 -0600 Subject: [PATCH] lightpreview: fix glsl syntax error --- lightpreview/glview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightpreview/glview.cpp b/lightpreview/glview.cpp index 4dba8399..dd36698b 100644 --- a/lightpreview/glview.cpp +++ b/lightpreview/glview.cpp @@ -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