diff options
author | Yiming Wu <xp8110@outlook.com> | 2022-06-29 17:54:29 +0300 |
---|---|---|
committer | Yiming Wu <xp8110@outlook.com> | 2022-06-29 17:54:29 +0300 |
commit | 6dd8ceef2a21f64cbb61a96560c50c162f9dae39 (patch) | |
tree | dff82af871b36d7df37213cdcc2a94dfd1ca70b2 /source/blender/makesdna/DNA_collection_types.h | |
parent | 2ac5b55289d361de7fccc9be188b98df358ab932 (diff) |
LineArt: Shadow and related functionalities.
This patch includes the full shadow functionality for LineArt:
- Light contour and cast shadow lines.
- Lit/shaded region selection.
- Enclosed light/shadow shape calculation.
- Silhouette/anti-silhouette selection.
- Intersection priority based on shadow edge identifier.
Reviewed By: Sebastian Parborg (zeddb)
Differential Revision: https://developer.blender.org/D15109
Diffstat (limited to 'source/blender/makesdna/DNA_collection_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_collection_types.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_collection_types.h b/source/blender/makesdna/DNA_collection_types.h index 8c437d69028..26011c990d4 100644 --- a/source/blender/makesdna/DNA_collection_types.h +++ b/source/blender/makesdna/DNA_collection_types.h @@ -40,6 +40,7 @@ enum eCollectionLineArt_Usage { enum eCollectionLineArt_Flags { COLLECTION_LRT_USE_INTERSECTION_MASK = (1 << 0), + COLLECTION_LRT_USE_INTERSECTION_PRIORITY = (1 << 1), }; typedef struct Collection { @@ -62,7 +63,8 @@ typedef struct Collection { short lineart_usage; /* eCollectionLineArt_Usage */ unsigned char lineart_flags; /* eCollectionLineArt_Flags */ unsigned char lineart_intersection_mask; - char _pad[6]; + unsigned char lineart_intersection_priority; + char _pad[5]; int16_t color_tag; |