Blender
V3.3
source
blender
makesdna
DNA_light_types.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later
2
* Copyright 2001-2002 NaN Holding BV. All rights reserved. */
3
8
#pragma once
9
10
#include "
DNA_ID.h
"
11
#include "
DNA_defs.h
"
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
17
#ifndef MAX_MTEX
18
# define MAX_MTEX 18
19
#endif
20
21
struct
AnimData
;
22
struct
CurveMapping
;
23
struct
Ipo
;
24
struct
bNodeTree
;
25
26
typedef
struct
Light
{
27
DNA_DEFINE_CXX_METHODS
(
Light
)
28
29
ID
id
;
31
struct
AnimData
*
adt
;
32
33
short
type
,
flag
;
34
int
mode
;
35
36
float
r
,
g
,
b
,
k
;
37
float
shdwr
,
shdwg
,
shdwb
,
shdwpad
;
38
39
float
energy
,
dist
,
spotsize
,
spotblend
;
40
42
float
att1
,
att2
;
43
float
coeff_const
,
coeff_lin
,
coeff_quad
;
44
char
_pad0
[4];
45
struct
CurveMapping
*
curfalloff
;
46
short
falloff_type
;
47
char
_pad2
[2];
48
49
float
clipsta
,
clipend
;
50
float
bias
;
51
float
soft
;
/* DEPRECATED kept for compatibility. */
52
float
bleedbias
;
/* DEPRECATED kept for compatibility. */
53
float
bleedexp
;
/* DEPRECATED kept for compatibility. */
54
short
bufsize
,
samp
,
buffers
,
filtertype
;
55
char
bufflag
,
buftype
;
56
57
short
area_shape
;
58
float
area_size
,
area_sizey
,
area_sizez
;
59
float
area_spread
;
60
61
float
sun_angle
;
62
63
/* texact is for buttons */
64
short
texact
,
shadhalostep
;
65
67
struct
Ipo
*ipo
DNA_DEPRECATED
;
68
short
pr_texture
,
use_nodes
;
69
char
_pad6
[4];
70
71
/* Eevee */
72
float
cascade_max_dist
;
73
float
cascade_exponent
;
74
float
cascade_fade
;
75
int
cascade_count
;
76
77
float
contact_dist
;
78
float
contact_bias
;
79
float
contact_spread
;
/* DEPRECATED kept for compatibility. */
80
float
contact_thickness
;
81
82
float
diff_fac
,
volume_fac
;
83
float
spec_fac
,
att_dist
;
84
85
/* preview */
86
struct
PreviewImage
*
preview
;
87
88
/* nodes */
89
struct
bNodeTree
*
nodetree
;
90
}
Light
;
91
92
/* **************** LIGHT ********************* */
93
94
/* flag */
95
#define LA_DS_EXPAND (1 << 0)
96
/* NOTE: this must have the same value as MA_DS_SHOW_TEXS,
97
* otherwise anim-editors will not read correctly
98
*/
99
#define LA_DS_SHOW_TEXS (1 << 2)
100
101
/* type */
102
#define LA_LOCAL 0
103
#define LA_SUN 1
104
#define LA_SPOT 2
105
/* #define LA_HEMI 3 */
/* not used anymore */
106
#define LA_AREA 4
107
108
/* mode */
109
#define LA_SHADOW (1 << 0)
110
/* #define LA_HALO (1 << 1) */
/* not used anymore */
111
/* #define LA_LAYER (1 << 2) */
/* not used anymore */
112
/* #define LA_QUAD (1 << 3) */
/* not used anymore */
113
/* #define LA_NEG (1 << 4) */
/* not used anymore */
114
/* #define LA_ONLYSHADOW(1 << 5) */
/* not used anymore */
115
/* #define LA_SPHERE (1 << 6) */
/* not used anymore */
116
#define LA_SQUARE (1 << 7)
117
/* #define LA_TEXTURE (1 << 8) */
/* not used anymore */
118
/* #define LA_OSATEX (1 << 9) */
/* not used anymore */
119
/* #define LA_DEEP_SHADOW (1 << 10) */
/* not used anywhere */
120
/* #define LA_NO_DIFF (1 << 11) */
/* not used anywhere */
121
/* #define LA_NO_SPEC (1 << 12) */
/* not used anywhere */
122
/* #define LA_SHAD_RAY (1 << 13) */
/* not used anywhere - cleaned */
123
/* YAFRAY: light shadow-buffer flag, soft-light. */
124
/* Since it is used with LOCAL light, can't use LA_SHAD */
125
/* #define LA_YF_SOFT (1 << 14) */
/* not used anymore */
126
/* #define LA_LAYER_SHADOW (1 << 15) */
/* not used anymore */
127
/* #define LA_SHAD_TEX (1 << 16) */
/* not used anymore */
128
#define LA_SHOW_CONE (1 << 17)
129
/* #define LA_SHOW_SHADOW_BOX (1 << 18) */
130
#define LA_SHAD_CONTACT (1 << 19)
131
#define LA_CUSTOM_ATTENUATION (1 << 20)
132
133
/* falloff_type */
134
#define LA_FALLOFF_CONSTANT 0
135
#define LA_FALLOFF_INVLINEAR 1
136
#define LA_FALLOFF_INVSQUARE 2
137
#define LA_FALLOFF_CURVE 3
138
#define LA_FALLOFF_SLIDERS 4
139
#define LA_FALLOFF_INVCOEFFICIENTS 5
140
141
/* area shape */
142
#define LA_AREA_SQUARE 0
143
#define LA_AREA_RECT 1
144
/* #define LA_AREA_CUBE 2 */
/* UNUSED */
145
/* #define LA_AREA_BOX 3 */
/* UNUSED */
146
#define LA_AREA_DISK 4
147
#define LA_AREA_ELLIPSE 5
148
149
#ifdef __cplusplus
150
}
151
#endif
DNA_ID.h
ID and Library types, which are fundamental for sdna.
DNA_defs.h
DNA_DEFINE_CXX_METHODS
#define DNA_DEFINE_CXX_METHODS(class_name)
Definition:
DNA_defs.h:64
AnimData
Definition:
DNA_anim_types.h:1068
CurveMapping
Definition:
DNA_color_types.h:59
ID
Definition:
DNA_ID.h:368
Ipo
Definition:
DNA_ipo_types.h:84
Light
Definition:
DNA_light_types.h:26
Light::coeff_const
float coeff_const
Definition:
DNA_light_types.h:43
Light::att2
float att2
Definition:
DNA_light_types.h:42
Light::contact_thickness
float contact_thickness
Definition:
DNA_light_types.h:80
Light::coeff_lin
float coeff_lin
Definition:
DNA_light_types.h:43
Light::cascade_exponent
float cascade_exponent
Definition:
DNA_light_types.h:73
Light::sun_angle
float sun_angle
Definition:
DNA_light_types.h:61
Light::r
float r
Definition:
DNA_light_types.h:36
Light::contact_dist
float contact_dist
Definition:
DNA_light_types.h:77
Light::energy
float energy
Definition:
DNA_light_types.h:39
Light::bufsize
short bufsize
Definition:
DNA_light_types.h:54
Light::shdwpad
float shdwpad
Definition:
DNA_light_types.h:37
Light::att_dist
float att_dist
Definition:
DNA_light_types.h:83
Light::texact
short texact
Definition:
DNA_light_types.h:64
Light::bufflag
char bufflag
Definition:
DNA_light_types.h:55
Light::preview
struct PreviewImage * preview
Definition:
DNA_light_types.h:86
Light::coeff_quad
float coeff_quad
Definition:
DNA_light_types.h:43
Light::dist
float dist
Definition:
DNA_light_types.h:39
Light::clipend
float clipend
Definition:
DNA_light_types.h:49
Light::att1
float att1
Definition:
DNA_light_types.h:42
Light::shadhalostep
short shadhalostep
Definition:
DNA_light_types.h:64
Light::area_sizez
float area_sizez
Definition:
DNA_light_types.h:58
Light::cascade_count
int cascade_count
Definition:
DNA_light_types.h:75
Light::_pad2
char _pad2[2]
Definition:
DNA_light_types.h:47
Light::area_spread
float area_spread
Definition:
DNA_light_types.h:59
Light::adt
struct AnimData * adt
Definition:
DNA_light_types.h:31
Light::spec_fac
float spec_fac
Definition:
DNA_light_types.h:83
Light::use_nodes
short use_nodes
Definition:
DNA_light_types.h:68
Light::contact_spread
float contact_spread
Definition:
DNA_light_types.h:79
Light::bleedbias
float bleedbias
Definition:
DNA_light_types.h:52
Light::bleedexp
float bleedexp
Definition:
DNA_light_types.h:53
Light::_pad0
char _pad0[4]
Definition:
DNA_light_types.h:44
Light::soft
float soft
Definition:
DNA_light_types.h:51
Light::area_sizey
float area_sizey
Definition:
DNA_light_types.h:58
Light::_pad6
char _pad6[4]
Definition:
DNA_light_types.h:69
Light::samp
short samp
Definition:
DNA_light_types.h:54
Light::shdwg
float shdwg
Definition:
DNA_light_types.h:37
Light::area_shape
short area_shape
Definition:
DNA_light_types.h:57
Light::buftype
char buftype
Definition:
DNA_light_types.h:55
Light::clipsta
float clipsta
Definition:
DNA_light_types.h:49
Light::spotblend
float spotblend
Definition:
DNA_light_types.h:39
Light::g
float g
Definition:
DNA_light_types.h:36
Light::falloff_type
short falloff_type
Definition:
DNA_light_types.h:46
Light::contact_bias
float contact_bias
Definition:
DNA_light_types.h:78
Light::spotsize
float spotsize
Definition:
DNA_light_types.h:39
Light::curfalloff
struct CurveMapping * curfalloff
Definition:
DNA_light_types.h:45
Light::nodetree
struct bNodeTree * nodetree
Definition:
DNA_light_types.h:89
Light::mode
int mode
Definition:
DNA_light_types.h:34
Light::area_size
float area_size
Definition:
DNA_light_types.h:58
Light::cascade_max_dist
float cascade_max_dist
Definition:
DNA_light_types.h:72
Light::filtertype
short filtertype
Definition:
DNA_light_types.h:54
Light::k
float k
Definition:
DNA_light_types.h:36
Light::shdwr
float shdwr
Definition:
DNA_light_types.h:37
Light::b
float b
Definition:
DNA_light_types.h:36
Light::shdwb
float shdwb
Definition:
DNA_light_types.h:37
Light::cascade_fade
float cascade_fade
Definition:
DNA_light_types.h:74
Light::volume_fac
float volume_fac
Definition:
DNA_light_types.h:82
Light::type
short type
Definition:
DNA_light_types.h:33
Light::pr_texture
short pr_texture
Definition:
DNA_light_types.h:68
Light::bias
float bias
Definition:
DNA_light_types.h:50
Light::diff_fac
float diff_fac
Definition:
DNA_light_types.h:82
Light::buffers
short buffers
Definition:
DNA_light_types.h:54
Light::flag
short flag
Definition:
DNA_light_types.h:33
Light::DNA_DEPRECATED
struct Ipo *ipo DNA_DEPRECATED
Definition:
DNA_light_types.h:67
PreviewImage
Definition:
DNA_ID.h:529
bNodeTree
Definition:
DNA_node_types.h:451
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1