From ceb3225db77c5a86b8cb8cce555251c1dffdd033 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Mon, 25 Mar 2013 01:00:16 +0000 Subject: Alpha mask textures porting part 1: Support for projective texturing. Also add random mapping to brushes. --- source/blender/makesdna/DNA_brush_types.h | 4 +++- source/blender/makesdna/DNA_texture_types.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h index 147791b4835..0c38adb3c83 100644 --- a/source/blender/makesdna/DNA_brush_types.h +++ b/source/blender/makesdna/DNA_brush_types.h @@ -56,6 +56,7 @@ typedef struct Brush { struct BrushClone clone; struct CurveMapping *curve; /* falloff curve */ struct MTex mtex; + struct MTex mask_mtex; struct Brush *toggle_brush; @@ -140,7 +141,8 @@ typedef enum BrushFlags { /* temporary flag which sets up automatically for correct brush * drawing when inverted modal operator is running */ BRUSH_INVERTED = (1 << 29), - BRUSH_ABSOLUTE_JITTER = (1 << 30) + BRUSH_ABSOLUTE_JITTER = (1 << 30), + BRUSH_USE_MASK = (1 << 31) } BrushFlags; /* Brush.sculpt_tool */ diff --git a/source/blender/makesdna/DNA_texture_types.h b/source/blender/makesdna/DNA_texture_types.h index dd63e6aad59..afb2ac74d99 100644 --- a/source/blender/makesdna/DNA_texture_types.h +++ b/source/blender/makesdna/DNA_texture_types.h @@ -499,6 +499,7 @@ typedef struct ColorMapping { #define MTEX_MAP_MODE_TILED 1 #define MTEX_MAP_MODE_3D 2 #define MTEX_MAP_MODE_AREA 3 +#define MTEX_MAP_MODE_RANDOM 4 /* **************** EnvMap ********************* */ -- cgit v1.2.3