Commit: df83a1872664e32d7f5d6b10cf0dff8d9eef85f8 Author: YimingWu Date: Mon Jul 5 20:37:16 2021 +0800 Branches: temp-lineart-contained https://developer.blender.org/rBdf83a1872664e32d7f5d6b10cf0dff8d9eef85f8
LineArt: Fix occlusion effectiveness for culled triangles. =================================================================== M source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c =================================================================== diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c index bfc1b3de3e0..f234036541d 100644 --- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c +++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c @@ -774,6 +774,7 @@ static void lineart_triangle_post(LineartTriangle *tri, LineartTriangle *orig) tri->flags = LRT_CULL_GENERATED; tri->intersection_mask = orig->intersection_mask; tri->material_mask_bits = orig->material_mask_bits; + tri->mat_occlusion = orig->mat_occlusion; } static void lineart_triangle_set_cull_flag(LineartTriangle *tri, uchar flag) _______________________________________________ Bf-blender-cvs mailing list [email protected] List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs
