Blender V4.5
DNA_light_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DNA_ID.h"
12#include "DNA_defs.h"
13
14#ifndef MAX_MTEX
15# define MAX_MTEX 18
16#endif
17
18struct AnimData;
19struct Ipo;
20struct bNodeTree;
21
22typedef struct Light {
23#ifdef __cplusplus
26 static constexpr ID_Type id_type = ID_LA;
27#endif
28
31 struct AnimData *adt;
32
33 /* Type and flags. */
34 short type, flag;
35 int mode;
36
37 /* Color, temperature and energy. */
38 float r, g, b;
40 float energy;
41 float exposure;
42
43 /* Point light. */
44 float radius;
45
46 /* Spot Light. */
47 float spotsize;
48 float spotblend;
49
50 /* Area light. */
52 short _pad1;
53 float area_size;
57
58 /* Sun light. */
59 float sun_angle;
60
61 /* Nodes. */
63
64 /* Eevee */
65 float clipsta;
67
72
73 float diff_fac;
74 float spec_fac;
77
78 float att_dist;
82
83 /* Preview */
85
86 /* Nodes */
88
89 /* Deprecated. */
90 struct Ipo *ipo DNA_DEPRECATED; /* Old animation system. */
91 float energy_deprecated DNA_DEPRECATED;
92 float _pad2;
94
95/* **************** LIGHT ********************* */
96
98enum {
99 LA_DS_EXPAND = 1 << 0,
105};
106
108enum {
112 // LA_HEMI = 3, /* Deprecated. */
114};
115
117enum {
118 LA_SHADOW = 1 << 0,
119 // LA_HALO = 1 << 1, /* Deprecated. */
120 // LA_LAYER = 1 << 2, /* Deprecated. */
121 // LA_QUAD = 1 << 3, /* Deprecated. */
122 // LA_NEG = 1 << 4, /* Deprecated. */
123 // LA_ONLYSHADOW = 1 << 5, /* Deprecated. */
124 // LA_SPHERE = 1 << 6, /* Deprecated. */
125 LA_SQUARE = 1 << 7,
126 // LA_TEXTURE = 1 << 8, /* Deprecated. */
127 // LA_OSATEX = 1 << 9, /* Deprecated. */
128 // LA_DEEP_SHADOW = 1 << 10, /* Deprecated. */
129 // LA_NO_DIFF = 1 << 11, /* Deprecated. */
130 // LA_NO_SPEC = 1 << 12, /* Deprecated. */
131 LA_SHAD_RAY = 1 << 13, /* Deprecated, cleaned. */
136 // LA_YF_SOFT = 1 << 14, /* Deprecated. */
137 // LA_LAYER_SHADOW = 1 << 15, /* Deprecated. */
138 // LA_SHAD_TEX = 1 << 16, /* Deprecated. */
139 LA_SHOW_CONE = 1 << 17,
140 // LA_SHOW_SHADOW_BOX = 1 << 18,
141 // LA_SHAD_CONTACT = 1 << 19, /* Deprecated. */
149};
150
152enum {
159};
160
162enum {
165 // LA_AREA_CUBE = 2, /* Deprecated. */
166 // LA_AREA_BOX = 3, /* Deprecated. */
169};
ID and Library types, which are fundamental for SDNA.
ID_Type
@ ID_LA
@ LA_FALLOFF_CONSTANT
@ LA_FALLOFF_INVCOEFFICIENTS
@ LA_FALLOFF_INVSQUARE
@ LA_FALLOFF_SLIDERS
@ LA_FALLOFF_INVLINEAR
@ LA_FALLOFF_CURVE
@ LA_DS_EXPAND
@ LA_DS_SHOW_TEXS
@ LA_AREA_ELLIPSE
@ LA_AREA_SQUARE
@ LA_AREA_RECT
@ LA_AREA_DISK
@ LA_USE_TEMPERATURE
@ LA_SHAD_RES_ABSOLUTE
@ LA_CUSTOM_ATTENUATION
@ LA_SQUARE
@ LA_SHOW_CONE
@ LA_UNNORMALIZED
@ LA_SHADOW_JITTER
@ LA_SHADOW
@ LA_SHAD_RAY
@ LA_USE_SOFT_FALLOFF
@ LA_AREA
@ LA_LOCAL
@ LA_SPOT
@ LA_SUN
#define DNA_DEFINE_CXX_METHODS(class_name)
Definition DNA_ID.h:404
float cascade_exponent
float sun_angle
float energy
float att_dist
float shadow_filter_radius
struct PreviewImage * preview
float temperature
float clipend_deprecated
float area_sizez
float shadow_jitter_overblur
int cascade_count
float area_spread
float transmission_fac
struct AnimData * adt
float spec_fac
short use_nodes
float area_sizey
short area_shape
float clipsta
float spotblend
short _pad1
float spotsize
float exposure
struct bNodeTree * nodetree
float _pad2
float radius
float area_size
float cascade_max_dist
float cascade_fade
float volume_fac
float shadow_maximum_resolution
short type
short pr_texture
float diff_fac
short flag
struct Ipo *ipo DNA_DEPRECATED