From 0335c1fd21dd49906968a2aa85b0016c8047f695 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Fri, 18 Sep 2020 18:23:25 +0200 Subject: GPencil: Implement Holdout materials This new feature allows to use the strokes as an eraser of any stroke below. This is very handy to open holes in filled areas. After running some tests, we have decided to keep the additive effect of the holdout color. To get clean holdout areas, just move the color to black to remove any additive effect. To have additive effect can be used in situations like tint slightly a transparent window with blue to simulate the glass. See T79878 for more details Differential Revision: https://developer.blender.org/D8932 --- source/blender/makesdna/DNA_material_types.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_material_types.h b/source/blender/makesdna/DNA_material_types.h index 3d050805f12..355d3d6439b 100644 --- a/source/blender/makesdna/DNA_material_types.h +++ b/source/blender/makesdna/DNA_material_types.h @@ -128,6 +128,10 @@ typedef enum eMaterialGPencilStyle_Flag { GP_MATERIAL_STROKE_TEX_MIX = (1 << 11), /* disable stencil clipping (overlap) */ GP_MATERIAL_DISABLE_STENCIL = (1 << 12), + /* Material used as stroke masking. */ + GP_MATERIAL_IS_STROKE_HOLDOUT = (1 << 13), + /* Material used as fill masking. */ + GP_MATERIAL_IS_FILL_HOLDOUT = (1 << 14), } eMaterialGPencilStyle_Flag; typedef enum eMaterialGPencilStyle_Mode { -- cgit v1.2.3