diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-10-30 15:00:38 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-10-30 15:00:38 +0300 |
commit | 486e2816442a9ec129c5737f05a4f4f816b0723c (patch) | |
tree | 0b939b42071282e29ec0a7da09dbf4b495ff50bd | |
parent | 117e17fb2259c60c4d744ae364004177de244b6e (diff) |
Fix T102160: Regression: GPencil gradient fill not working
Was caused by uvs not being sourced from the correct buffer.
-rw-r--r-- | source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl index 9b1db09ab3c..6fd94336558 100644 --- a/source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl +++ b/source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl @@ -85,7 +85,7 @@ void main() } else { int stroke_point_id = gpencil_stroke_point_id(); - vec4 uv1 = texelFetch(gp_col_tx, stroke_point_id * 2 + 2); + vec4 uv1 = texelFetch(gp_pos_tx, stroke_point_id * 3 + 2); vec4 fcol1 = texelFetch(gp_col_tx, stroke_point_id * 2 + 1); vec4 fill_col = gp_mat.fill_color; |