Skip to content

Commit 56a6ff6

Browse files
endankegithub-actions[bot]
authored andcommitted
Add MULTIPLY_LINE_GRADIENT_COLOR to line shader
GitOrigin-RevId: a0578fbcdb945adc8efe76e815f09845f651a54d
1 parent 596871e commit 56a6ff6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/shaders/line.fragment.glsl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ void main() {
8989
#ifdef RENDER_LINE_GRADIENT
9090
// For gradient lines, v_uv.xy are the coord specify where the texture will be simpled.
9191
out_color = texture(u_gradient_image, v_uv.xy);
92+
#ifdef MULTIPLY_LINE_GRADIENT_COLOR
93+
out_color *= color;
94+
#endif
9295
#else
9396
out_color = color;
9497
#endif

0 commit comments

Comments
 (0)