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.glsl11
1 files changed, 7 insertions, 4 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 5248aa87a80..406d83633b0 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
@@ -1,8 +1,11 @@
+#pragma BLENDER_REQUIRE(sculpt_paint_tile_lib.glsl)
+
void main()
{
- ivec2 coord_in = ivec2(gl_GlobalInvocationID.xy);
- ivec2 coord_out = coord_in;
- vec4 paint_color = imageLoad(in_paint_img, coord_in);
+ ivec2 coord_out = ivec2(gl_GlobalInvocationID.xy);
+ PaintTileData paint_tile;
+ ivec3 coord_in = paint_tile_coord_from_udim(1001, coord_out, paint_tile);
+ vec4 paint_color = imageLoad(paint_tiles_img, coord_in);
paint_color.a = 1.0;
- imageStore(out_img, coord_out, paint_color);
+ imageStore(texture_img, coord_out, paint_color);
} \ No newline at end of file