Fix: GPv3: Error in shader caused by mixing data types

This commit is contained in:
Falk David
2024-01-19 12:34:59 +01:00
parent fd07c43f5e
commit d3cd2c5556

View File

@@ -58,7 +58,7 @@ vec3 gpencil_lighting(void)
vec4 debug_texture(vec2 uv)
{
vec4 col = vec4(mod(uv.xy, 1.0), 0.0, 1.0);
return col * min(length(uv.xy * 2 - 1), 1);
return col * min(length(uv.xy * 2.0 - 1.0), 1.0);
}
void main()