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:
Diffstat (limited to 'source/blender/gpu/shaders/sculpt_paint/sculpt_paint_image_merge_comp.glsl')
-rw-r--r--source/blender/gpu/shaders/sculpt_paint/sculpt_paint_image_merge_comp.glsl6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/gpu/shaders/sculpt_paint/sculpt_paint_image_merge_comp.glsl b/source/blender/gpu/shaders/sculpt_paint/sculpt_paint_image_merge_comp.glsl
index 406d83633b0..b3ff3ac3ff3 100644
--- a/source/blender/gpu/shaders/sculpt_paint/sculpt_paint_image_merge_comp.glsl
+++ b/source/blender/gpu/shaders/sculpt_paint/sculpt_paint_image_merge_comp.glsl
@@ -2,10 +2,12 @@
void main()
{
- ivec2 coord_out = ivec2(gl_GlobalInvocationID.xy);
PaintTileData paint_tile;
- ivec3 coord_in = paint_tile_coord_from_udim(1001, coord_out, paint_tile);
+ paint_tile_get_layer(layer_id, paint_tile);
+ ivec3 coord_in = ivec3(gl_GlobalInvocationID.xy, layer_id);
vec4 paint_color = imageLoad(paint_tiles_img, coord_in);
paint_color.a = 1.0;
+
+ ivec2 coord_out = paint_tile_coord_to_udim(paint_tile, coord_in.xy);
imageStore(texture_img, coord_out, paint_color);
} \ No newline at end of file