From 5c23fedc31dc9dcf553334f367106cade0ab4274 Mon Sep 17 00:00:00 2001 From: Tim Deubler Date: Wed, 29 Nov 2023 19:29:33 +0100 Subject: [PATCH] fixed (introduced with c381f20), simple dashed lines ignore alpha color Signed-off-by: Tim Deubler --- packages/display/src/displays/webgl/glsl/line_fragment.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/display/src/displays/webgl/glsl/line_fragment.glsl b/packages/display/src/displays/webgl/glsl/line_fragment.glsl index 7d088b6a7..b00433066 100644 --- a/packages/display/src/displays/webgl/glsl/line_fragment.glsl +++ b/packages/display/src/displays/webgl/glsl/line_fragment.glsl @@ -47,7 +47,7 @@ void main(void){ float u = patternPosition / dashPosition; gl_FragColor = u_fill * texture2D(u_dashTexture, vec2(u, v_dir.y)); #else - gl_FragColor = vec4(u_fill.rgb, step(patternPosition, dashPosition)); + gl_FragColor = u_fill * step(patternPosition, dashPosition); #endif #endif