2
2
* blenlib/DNA_material_types.h (mar-2001 nzc)
4
* $Id: DNA_material_types.h,v 1.15 2004/04/26 16:49:05 ton Exp $
4
* $Id: DNA_material_types.h,v 1.28 2005/05/27 17:52:52 eeshlo Exp $
6
6
* ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
59
64
float translucency;
60
65
float fresnel_mir, fresnel_mir_i;
61
66
float fresnel_tra, fresnel_tra_i;
67
float filter, pad0; /* filter added, for raytrace transparency */
62
68
short ray_depth, ray_depth_tra;
69
75
float hasize, flaresize, subsize, flareboost;
71
77
/* for buttons and render*/
72
char rgbsel, texact, pr_type, septex;
73
short pr_back, pr_lamp;
78
char rgbsel, texact, pr_type, pad;
79
short pr_back, pr_lamp, septex, pad4;
76
83
short diff_shader, spec_shader;
77
84
float roughness, refrac;
78
85
float param[4]; /* size, smooth, size, smooth, for toonshader */
79
88
short texco, mapto;
91
struct ColorBand *ramp_col;
92
struct ColorBand *ramp_spec;
93
char rampin_col, rampin_spec;
94
char rampblend_col, rampblend_spec;
95
short ramp_show, pad3;
96
float rampfac_col, rampfac_spec;
98
struct MTex *mtex[10];
85
101
/* dynamic properties */
86
102
float friction, fh, reflect;
87
103
float fhdist, xyfrict;
88
104
short dynamode, pad2;
106
/* yafray: absorption color, dispersion parameters and material preset menu */
107
float YF_ar, YF_ag, YF_ab, YF_dscale, YF_dpwr;
108
int YF_dsmp, YF_preset, YF_djit;
90
110
ScriptLink scriptlink;
129
149
#define MA_RAYTRANSP 0x20000
130
150
#define MA_RAYMIRROR 0x40000
131
151
#define MA_SHADOW_TRA 0x80000
152
#define MA_RAMP_COL 0x100000
153
#define MA_RAMP_SPEC 0x200000
154
#define MA_RAYBIAS 0x400000
155
#define MA_FULL_OSA 0x800000
133
157
/* diff_shader */
134
158
#define MA_DIFF_LAMBERT 0
135
159
#define MA_DIFF_ORENNAYAR 1
136
160
#define MA_DIFF_TOON 2
161
#define MA_DIFF_MINNAERT 3
138
163
/* spec_shader */
139
164
#define MA_SPEC_COOKTORR 0
140
165
#define MA_SPEC_PHONG 1
141
166
#define MA_SPEC_BLINN 2
142
167
#define MA_SPEC_TOON 3
168
#define MA_SPEC_WARDISO 4
145
171
#define MA_DRAW_DYNABUTS 1
146
172
#define MA_FH_NOR 2
175
#define MA_RAMP_IN_SHADER 0
176
#define MA_RAMP_IN_ENERGY 1
177
#define MA_RAMP_IN_NOR 2
178
#define MA_RAMP_IN_RESULT 3
180
#define MA_RAMP_BLEND 0
181
#define MA_RAMP_ADD 1
182
#define MA_RAMP_MULT 2
183
#define MA_RAMP_SUB 3
184
#define MA_RAMP_SCREEN 4
185
#define MA_RAMP_DIV 5
186
#define MA_RAMP_DIFF 6
187
#define MA_RAMP_DARK 7
188
#define MA_RAMP_LIGHT 8
149
191
#define TEXCO_ORCO 1
150
192
#define TEXCO_REFL 2