Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2022-10-30 15:00:38 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-10-30 15:00:38 +0300
commit486e2816442a9ec129c5737f05a4f4f816b0723c (patch)
tree0b939b42071282e29ec0a7da09dbf4b495ff50bd
parent117e17fb2259c60c4d744ae364004177de244b6e (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.glsl2
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;