From 486e2816442a9ec129c5737f05a4f4f816b0723c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cle=CC=81ment=20Foucault?= Date: Sun, 30 Oct 2022 13:00:38 +0100 Subject: Fix T102160: Regression: GPencil gradient fill not working Was caused by uvs not being sourced from the correct buffer. --- source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3