2 * blenlib/DNA_lamp_types.h (mar-2001 nzc)
6 * ***** BEGIN GPL LICENSE BLOCK *****
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
23 * All rights reserved.
25 * The Original Code is: all of this file.
27 * Contributor(s): none yet.
29 * ***** END GPL LICENSE BLOCK *****
31 #ifndef DNA_LAMP_TYPES_H
32 #define DNA_LAMP_TYPES_H
35 #include "DNA_scriptlink_types.h"
51 short colormodel, totex;
53 float shdwr, shdwg, shdwb, shdwpad;
55 float energy, dist, spotsize, spotblend;
59 float att1, att2; /* Quad1 and Quad2 attenuation */
60 struct CurveMapping *curfalloff;
64 float clipsta, clipend, shadspotsize;
66 short bufsize, samp, buffers, filtertype;
67 char bufflag, buftype;
69 short ray_samp, ray_sampy, ray_sampz;
72 float area_size, area_sizey, area_sizez;
74 short ray_samp_method;
77 /* texact is for buttons */
78 short texact, shadhalostep;
81 short sun_effect_type;
83 float horizon_brightness;
87 float backscattered_light;
90 float atm_inscattering_factor;
91 float atm_extinction_factor;
92 float atm_distance_factor;
95 /* yafray: photonlight params */
96 int YF_numphotons, YF_numsearch;
97 short YF_phdepth, YF_useqmc, YF_bufsize, YF_pad;
98 float YF_causticblur, YF_ltradius;
99 /* yafray: glow params */
100 float YF_glowint, YF_glowofs;
101 short YF_glowtype, YF_pad2;
103 struct MTex *mtex[18]; /* MAX_MTEX */
107 struct PreviewImage *preview;
109 ScriptLink scriptlink;
112 /* **************** LAMP ********************* */
120 /* yafray: extra lamp type used for caustic photonmap */
121 #define LA_YF_PHOTON 5
124 #define LA_SHAD_BUF 1
127 #define LA_QUAD 8 /* no longer used */
129 #define LA_ONLYSHADOW 32
131 #define LA_SQUARE 128
132 #define LA_TEXTURE 256
133 #define LA_OSATEX 512
134 #define LA_DEEP_SHADOW 1024
135 #define LA_NO_DIFF 2048
136 #define LA_NO_SPEC 4096
137 #define LA_SHAD_RAY 8192
138 /* yafray: lamp shadowbuffer flag, softlight */
139 /* Since it is used with LOCAL lamp, can't use LA_SHAD */
140 #define LA_YF_SOFT 16384
141 #define LA_LAYER_SHADOW 32768
142 #define LA_SHAD_TEX (1<<16)
145 #define LA_LAYER_SHADOW_BOTH 0
146 #define LA_LAYER_SHADOW_CAST 1
147 #define LA_LAYER_SHADOW_RECEIVE 2
150 #define LA_SUN_EFFECT_SKY 1
151 #define LA_SUN_EFFECT_AP 2
154 #define LA_FALLOFF_CONSTANT 0
155 #define LA_FALLOFF_INVLINEAR 1
156 #define LA_FALLOFF_INVSQUARE 2
157 #define LA_FALLOFF_CURVE 3
158 #define LA_FALLOFF_SLIDERS 4
161 /* buftype, no flag */
162 #define LA_SHADBUF_REGULAR 0
163 #define LA_SHADBUF_IRREGULAR 1
164 #define LA_SHADBUF_HALFWAY 2
166 /* bufflag, auto clipping */
167 #define LA_SHADBUF_AUTO_START 1
168 #define LA_SHADBUF_AUTO_END 2
171 #define LA_SHADBUF_BOX 0
172 #define LA_SHADBUF_TENT 1
173 #define LA_SHADBUF_GAUSS 2
176 #define LA_AREA_SQUARE 0
177 #define LA_AREA_RECT 1
178 #define LA_AREA_CUBE 2
179 #define LA_AREA_BOX 3
181 /* ray_samp_method */
182 #define LA_SAMP_CONSTANT 0
183 #define LA_SAMP_HALTON 1
184 #define LA_SAMP_HAMMERSLEY 2
188 #define LA_SAMP_ROUND 1
189 #define LA_SAMP_UMBRA 2
190 #define LA_SAMP_DITHER 4
191 #define LA_SAMP_JITTER 8
198 #endif /* DNA_LAMP_TYPES_H */