Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_material_types.h
| Context not available. | |||||
| int flag; | int flag; | ||||
| int alpha_blend; | int alpha_blend; | ||||
| int face_orientation; | int face_orientation; | ||||
| int pad1; | int pad; | ||||
| } GameSettings; | } GameSettings; | ||||
| typedef struct TexPaintSlot { | typedef struct TexPaintSlot { | ||||
| Context not available. | |||||
| struct PreviewImage *preview; | struct PreviewImage *preview; | ||||
| /* dynamic properties */ | /* dynamic properties */ | ||||
| float friction, fh, reflect; | float friction DNA_DEPRECATED, rolling_friction DNA_DEPRECATED; | ||||
| float fhdist, xyfrict; | float fh DNA_DEPRECATED, reflect DNA_DEPRECATED; | ||||
| short dynamode, pad2; | float fhdist DNA_DEPRECATED, xyfrict DNA_DEPRECATED; | ||||
| short dynamode DNA_DEPRECATED, pad2[3]; | |||||
| /* subsurface scattering */ | /* subsurface scattering */ | ||||
| float sss_radius[3], sss_col[3]; | float sss_radius[3], sss_col[3]; | ||||
| Context not available. | |||||
| short paint_active_slot; | short paint_active_slot; | ||||
| short paint_clone_slot; | short paint_clone_slot; | ||||
| short tot_slots; | short tot_slots; | ||||
| short pad4[3]; | |||||
| /* Constants settings */ | |||||
| short constflag; | |||||
| /* Depth transparency settings */ | |||||
| float depthtranspfactor; | |||||
| /* multiple tangent (Normal Map node) */ | /* multiple tangent (Normal Map node) */ | ||||
| char nmap_tangent_names[9][64]; /* [MAX_MTFACE+1][MAX_NAME]; +1 for empty name */ | char nmap_tangent_names[9][64]; /* [MAX_MTFACE+1][MAX_NAME]; +1 for empty name */ | ||||
| Context not available. | |||||
| struct TexPaintSlot *texpaintslot; /* cached slot for painting. Make sure to recalculate before use | struct TexPaintSlot *texpaintslot; /* cached slot for painting. Make sure to recalculate before use | ||||
| * with refresh_texpaint_image_cache */ | * with refresh_texpaint_image_cache */ | ||||
| ListBase gpumaterial; /* runtime */ | ListBase gpumaterial; /* runtime */ | ||||
| ListBase gpumaterialinstancing; /* runtime */ | |||||
| } Material; | } Material; | ||||
| Context not available. | |||||
| // Game Options - flag | // Game Options - flag | ||||
| #define GEMAT_BACKCULL 16 /* KX_BACKCULL */ | #define GEMAT_BACKCULL 16 /* KX_BACKCULL */ | ||||
| #define GEMAT_SHADED 32 /* KX_LIGHT */ | #define GEMAT_SHADED 32 /* KX_LIGHT */ | ||||
| #define GEMAT_TEXT 64 /* RAS_RENDER_3DPOLYGON_TEXT */ | #define GEMAT_NOPHYSICS 128 | ||||
| #define GEMAT_NOPHYSICS 128 | |||||
| #define GEMAT_INVISIBLE 256 | #define GEMAT_INVISIBLE 256 | ||||
| // Face Orientation Options - face_orientation | // Face Orientation Options - face_orientation | ||||
| Context not available. | |||||
| #define GEMAT_BILLBOARD 1024 /* BILLBOARD_AXISALIGNED */ | #define GEMAT_BILLBOARD 1024 /* BILLBOARD_AXISALIGNED */ | ||||
| #define GEMAT_SHADOW 2048 /* SHADOW */ | #define GEMAT_SHADOW 2048 /* SHADOW */ | ||||
| // Use Textures - not defined directly in the UI | |||||
| #define GEMAT_TEX 4096 /* KX_TEX */ | |||||
| /* **************** MATERIAL ********************* */ | /* **************** MATERIAL ********************* */ | ||||
| /* maximum number of materials per material array. | /* maximum number of materials per material array. | ||||
| Context not available. | |||||
| #define MA_TYPE_VOLUME 2 | #define MA_TYPE_VOLUME 2 | ||||
| #define MA_TYPE_WIRE 3 | #define MA_TYPE_WIRE 3 | ||||
| /* constflag */ | |||||
| #define MA_CONSTANT_MATERIAL (1 << 0) | |||||
| #define MA_CONSTANT_LAMP (1 << 1) | |||||
| #define MA_CONSTANT_TEXTURE (1 << 2) | |||||
| #define MA_CONSTANT_WORLD (1 << 3) | |||||
| #define MA_CONSTANT_MIST (1 << 4) | |||||
| #define MA_CONSTANT_TEXTURE_UV (1 << 5) | |||||
| /* flag */ | /* flag */ | ||||
| /* for render */ | /* for render */ | ||||
| #define MA_IS_USED 1 | #define MA_IS_USED 1 | ||||
| Context not available. | |||||
| #define MA_CASTSHADOW (1 << 0) | #define MA_CASTSHADOW (1 << 0) | ||||
| #define MA_MODE2_PIPELINE (MA_CASTSHADOW) | #define MA_MODE2_PIPELINE (MA_CASTSHADOW) | ||||
| #define MA_TANGENT_CONCRETE (1 << 1) | #define MA_TANGENT_CONCRETE (1 << 1) | ||||
| #define MA_DEPTH_TRANSP (1 << 2) | |||||
| /* mapflag */ | /* mapflag */ | ||||
| #define MA_MAPFLAG_UVPROJECT (1 << 0) | #define MA_MAPFLAG_UVPROJECT (1 << 0) | ||||
| Context not available. | |||||
| #define MA_OBCOLOR 2 | #define MA_OBCOLOR 2 | ||||
| #define MA_APPROX_OCCLUSION 4 | #define MA_APPROX_OCCLUSION 4 | ||||
| #define MA_GROUP_LOCAL 8 | #define MA_GROUP_LOCAL 8 | ||||
| #define MA_INSTANCING 16 | |||||
| /* diff_shader */ | /* diff_shader */ | ||||
| #define MA_DIFF_LAMBERT 0 | #define MA_DIFF_LAMBERT 0 | ||||
| Context not available. | |||||
| #define MA_SPEC_WARDISO 4 | #define MA_SPEC_WARDISO 4 | ||||
| /* dynamode */ | /* dynamode */ | ||||
| // #define MA_DRAW_DYNABUTS 1 /* deprecated */ | #ifdef DNA_DEPRECATED | ||||
| #define MA_FH_NOR 2 | # define MA_FH_NOR 2 | ||||
| #endif | |||||
| /* ramps */ | /* ramps */ | ||||
| #define MA_RAMP_IN_SHADER 0 | #define MA_RAMP_IN_SHADER 0 | ||||
| Context not available. | |||||
| #define MAP_DISPLACE 4096 | #define MAP_DISPLACE 4096 | ||||
| #define MAP_WARP 8192 | #define MAP_WARP 8192 | ||||
| // #define MAP_LAYER 16384 /* unused */ | // #define MAP_LAYER 16384 /* unused */ | ||||
| #define MAP_PARALLAX 32768 | |||||
| /* volume mapto - reuse definitions for now - a bit naughty! */ | /* volume mapto - reuse definitions for now - a bit naughty! */ | ||||
| #define MAP_DENSITY 128 | #define MAP_DENSITY 128 | ||||
| Context not available. | |||||