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