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:
authorYimingWu <xp8110@outlook.com>2021-07-04 08:23:52 +0300
committerYimingWu <xp8110@outlook.com>2021-07-04 08:23:52 +0300
commit442f269a72e8f07393fd246f642e210171a1c9bc (patch)
treeecab515215209172245f7709a0c07c1b14dab96c /source/blender/makesdna/DNA_material_types.h
parent87dae08dd3f2a80dd208576b130cabaca21c9912 (diff)
parent2d146b61d8583ec7169c5c04263d475a542b06ce (diff)
Merge remote-tracking branch 'origin/master' into lineart-bvh
Diffstat (limited to 'source/blender/makesdna/DNA_material_types.h')
-rw-r--r--source/blender/makesdna/DNA_material_types.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/source/blender/makesdna/DNA_material_types.h b/source/blender/makesdna/DNA_material_types.h
index f33d16ea693..ac18116cc84 100644
--- a/source/blender/makesdna/DNA_material_types.h
+++ b/source/blender/makesdna/DNA_material_types.h
@@ -40,7 +40,7 @@ struct Image;
struct Ipo;
struct bNodeTree;
-/* WATCH IT: change type? also make changes in ipo.h */
+/* WATCH IT: change type? also make changes in ipo.h */
typedef struct TexPaintSlot {
/** Image to be painted on. */
@@ -149,22 +149,17 @@ typedef struct MaterialLineArt {
/* eMaterialLineArtFlags */
int flags;
- /** transparency_mask is for determining lines behind a glass window material. Only the lower 6
- * bits are used in this variable which allows 6 materials for "transparent mask", because the
- * other two bits when running line art is used to register occlusion effectiveness value so we
- * save 1 byte for each triangle during run time. When loading line art, these bits were shifted
- * to higher 6 bits and reserved 2 bits of space for occlusion_effectiveness.
- */
- unsigned char transparency_mask;
+ /* Used to filter line art occlusion edges */
+ unsigned char material_mask_bits;
- /** bits 1<<0 and 1<<1 are for occlusion effectiveness value (which means 0-3 layers). */
- unsigned char occlusion_effectiveness;
+ /** Maximum 255 levels of equivalent occlusion. */
+ unsigned char mat_occlusion;
unsigned char _pad[2];
} MaterialLineArt;
typedef enum eMaterialLineArtFlags {
- LRT_MATERIAL_TRANSPARENCY_ENABLED = (1 << 0),
+ LRT_MATERIAL_MASK_ENABLED = (1 << 0),
LRT_MATERIAL_CUSTOM_OCCLUSION_EFFECTIVENESS = (1 << 1),
} eMaterialLineArtFlags;