Blender  V2.93
DNA_light_defaults.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
21 #pragma once
22 
23 /* Struct members on own line. */
24 /* clang-format off */
25 
26 /* -------------------------------------------------------------------- */
30 #define _DNA_DEFAULT_Light \
31  { \
32  .r = 1.0f, \
33  .g = 1.0f, \
34  .b = 1.0f, \
35  .k = 1.0f, \
36  .energy = 10.0f, \
37  .dist = 25.0f, \
38  .spotsize = DEG2RADF(45.0f), \
39  .spotblend = 0.15f, \
40  .att2 = 1.0f, \
41  .mode = LA_SHADOW, \
42  .bufsize = 512, \
43  .clipsta = 0.05f, \
44  .clipend = 40.0f, \
45  .bleedexp = 2.5f, \
46  .samp = 3, \
47  .bias = 1.0f, \
48  .soft = 3.0f, \
49  .area_size = 0.25f, \
50  .area_sizey = 0.25f, \
51  .area_sizez = 0.25f, \
52  .buffers = 1, \
53  .preview = NULL, \
54  .falloff_type = LA_FALLOFF_INVSQUARE, \
55  .coeff_const = 1.0f, \
56  .coeff_lin = 0.0f, \
57  .coeff_quad = 0.0f, \
58  .cascade_max_dist = 200.0f, \
59  .cascade_count = 4, \
60  .cascade_exponent = 0.8f, \
61  .cascade_fade = 0.1f, \
62  .contact_dist = 0.2f, \
63  .contact_bias = 0.03f, \
64  .contact_spread = 0.2f, \
65  .contact_thickness = 0.2f, \
66  .diff_fac = 1.0f, \
67  .spec_fac = 1.0f, \
68  .volume_fac = 1.0f, \
69  .att_dist = 40.0f, \
70  .sun_angle = DEG2RADF(0.526f), \
71  .area_spread = DEG2RADF(180.0f), \
72  }
73 
76 /* clang-format on */