~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/makesdna/DNA_material_types.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
2
 * blenlib/DNA_material_types.h (mar-2001 nzc)
3
3
 *
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 $ 
5
5
 *
6
6
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
7
7
 *
39
39
#include "DNA_ID.h"
40
40
#include "DNA_scriptlink_types.h"
41
41
 
 
42
#ifndef MAX_MTEX
 
43
#define MAX_MTEX        10
 
44
#endif
 
45
 
42
46
struct MTex;
43
47
struct Ipo;
44
48
struct Material;
 
49
struct ColorBand;
45
50
 
46
51
/* WATCH IT: change type? also make changes in ipo.h  */
47
52
 
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;
63
69
        short har;
64
70
        char seed1, seed2;
69
75
        float hasize, flaresize, subsize, flareboost;
70
76
        
71
77
        /* for buttons and render*/
72
 
        char rgbsel, texact, pr_type, septex;
73
 
        short pr_back, pr_lamp;
74
 
 
 
78
        char rgbsel, texact, pr_type, pad;
 
79
        short pr_back, pr_lamp, septex, pad4;
 
80
        int pad5;
 
81
        
75
82
        /* shaders */
76
83
        short diff_shader, spec_shader;
77
84
        float roughness, refrac;
78
85
        float param[4];         /* size, smooth, size, smooth, for toonshader */
 
86
        float rms;
 
87
        float darkness;
79
88
        short texco, mapto;
80
89
        
81
 
        struct MTex *mtex[8];
 
90
        /* ramp colors */
 
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;
 
97
 
 
98
        struct MTex *mtex[10];
82
99
        struct Ipo *ipo;
83
 
        struct Material *ren;
84
100
        
85
101
        /* dynamic properties */
86
102
        float friction, fh, reflect;
87
103
        float fhdist, xyfrict;
88
104
        short dynamode, pad2;
89
 
        
 
105
 
 
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;
 
109
 
90
110
        ScriptLink scriptlink;
91
111
} Material;
92
112
 
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
132
156
 
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
137
162
 
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
143
169
 
144
170
/* dynamode */
145
171
#define MA_DRAW_DYNABUTS    1
146
172
#define MA_FH_NOR               2
147
173
 
 
174
/* ramps */
 
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
 
179
 
 
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
 
189
 
148
190
/* texco */
149
191
#define TEXCO_ORCO              1
150
192
#define TEXCO_REFL              2
158
200
#define TEXCO_OSA               512
159
201
#define TEXCO_WINDOW    1024
160
202
#define NEED_UV                 2048
 
203
/* optim = use simpler AA */
 
204
#define TEXCO_OPTIM             4096
161
205
 
162
206
/* mapto */
163
207
#define MAP_COL                 1
174
218
#define MAP_TRANSLU             1024
175
219
#define MAP_AMB                 2048
176
220
#define MAP_DISPLACE    4096
 
221
#define MAP_WARP                8192
177
222
 
178
223
/* pr_type */
179
224
#define MA_FLAT                 0