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:
authorAntony Riakiotakis <kalast@gmail.com>2015-02-10 22:22:25 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-02-10 22:23:43 +0300
commita3b7f83cb54a9bafe3ed2156d7cda3a1b758792b (patch)
tree62372a0d1349e4f01f2ca4a7fe13aea2032cddc3 /source/blender/makesdna/DNA_scene_types.h
parent13ad69c68e25346c6530e87d69eafded4d62dadc (diff)
Cavity mask support for texture painting.
Title says it all, options can be found in the options panel, A slider controls the amount of cavity masking that is applied while it's also possible to invert the mask and paint outside or inside cavities. Again we might greatly benefit from caching of the cavity result, but that should only affect startup time for the stroke.
Diffstat (limited to 'source/blender/makesdna/DNA_scene_types.h')
-rw-r--r--source/blender/makesdna/DNA_scene_types.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h
index 9ac506696ad..d3fa9c82d39 100644
--- a/source/blender/makesdna/DNA_scene_types.h
+++ b/source/blender/makesdna/DNA_scene_types.h
@@ -850,6 +850,8 @@ typedef struct ImagePaintSettings {
struct Image *canvas; /* canvas when the explicit system is used for painting */
float stencil_col[3];
float dither; /* dither amount used when painting on byte images */
+ float cavity_mul;
+ float pad;
} ImagePaintSettings;
/* ------------------------------------------- */
@@ -1754,12 +1756,15 @@ typedef enum ImagePaintMode {
// #define IMAGEPAINT_DRAW_TOOL_DRAWING 4 // deprecated
/* projection painting only */
-#define IMAGEPAINT_PROJECT_XRAY 16
-#define IMAGEPAINT_PROJECT_BACKFACE 32
-#define IMAGEPAINT_PROJECT_FLAT 64
-#define IMAGEPAINT_PROJECT_LAYER_CLONE 128
-#define IMAGEPAINT_PROJECT_LAYER_STENCIL 256
-#define IMAGEPAINT_PROJECT_LAYER_STENCIL_INV 512
+#define IMAGEPAINT_PROJECT_XRAY (1 << 4)
+#define IMAGEPAINT_PROJECT_BACKFACE (1 << 5)
+#define IMAGEPAINT_PROJECT_FLAT (1 << 6)
+#define IMAGEPAINT_PROJECT_LAYER_CLONE (1 << 7)
+#define IMAGEPAINT_PROJECT_LAYER_STENCIL (1 << 8)
+#define IMAGEPAINT_PROJECT_LAYER_STENCIL_INV (1 << 9)
+#define IMAGEPAINT_PROJECT_CAVITY (1 << 10)
+#define IMAGEPAINT_PROJECT_CAVITY_INV (1 << 11)
+
#define IMAGEPAINT_MISSING_UVS (1 << 0)
#define IMAGEPAINT_MISSING_MATERIAL (1 << 1)