Blender V5.3
DNA_world_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 "BLI_enum_flags.hh"
12#include "BLI_math_constants.hh"
13
14#include "DNA_ID.h"
15#include "DNA_defs.h"
16
17namespace blender {
18
19struct AnimData;
21struct bNodeTree;
22
23#ifndef MAX_MTEX
24# define MAX_MTEX 18
25#endif
26
28enum eWorld_Mode : short {
29 WO_MIST = 1 << 0,
30 WO_MODE_UNUSED_1 = 1 << 1, /* cleared */
31 WO_MODE_UNUSED_2 = 1 << 2, /* cleared */
32 WO_MODE_UNUSED_3 = 1 << 3, /* cleared */
33 WO_MODE_UNUSED_4 = 1 << 4, /* cleared */
34 WO_MODE_UNUSED_5 = 1 << 5, /* cleared */
35 WO_MODE_UNUSED_6 = 1 << 6, /* cleared */
36 WO_MODE_UNUSED_7 = 1 << 7, /* cleared */
37};
39
40
46
67
68
77
81struct World {
82#ifdef __cplusplus
85 static constexpr ID_Type id_type = ID_WO;
86#endif
87
90 struct AnimData *adt = nullptr;
91
92 char _pad0[4] = {};
93 short texact = 0;
95
96 float horr = 0.05f, horg = 0.05f, horb = 0.05f;
97
102 float exposure = 0, exp = 0, range = 0;
103
109
112
113 float misi = 0, miststa = 5.0f, mistdist = 25.0f, misthi = 0;
114
116 float aodist = 10.0f, aoenergy = 1.0f;
117
122 float sun_threshold = 10.0f;
124 float sun_angle = DEG2RADF(0.526f);
129
130 short pr_texture = 0;
132
133 /* previews */
134 struct PreviewImage *preview = nullptr;
135
136 /* #World::use_nodes is deprecated so it's not possible to create an embedded node tree from
137 * the UI or Python API by setting `use_nodes = True`. Therefore, #nodetree is required to never
138 * be nullptr. */
139 struct bNodeTree *nodetree = nullptr;
140
143
144 void *_pad1 = nullptr;
145
147 ListBaseT<LinkData> gpumaterial = {nullptr, nullptr};
148 /* The Depsgraph::update_count when this World was last updated. */
150};
151
152} // namespace blender
#define ENUM_OPERATORS(_enum_type)
#define DEG2RADF(_deg)
ID and Library types, which are fundamental for SDNA.
#define DNA_DEFINE_CXX_METHODS(class_name)
Definition DNA_defs.h:104
#define DNA_DEPRECATED
Definition DNA_defs.h:21
BMesh Iterators.
unsigned __int64 uint64_t
Definition BKE_text.h:91
@ WO_USE_EEVEE_FINITE_VOLUME
@ WO_USE_SUN_SHADOW_JITTER
@ WO_MIST_INVERSE_QUADRATIC
@ LIGHT_PROBE_RESOLUTION_512
@ LIGHT_PROBE_RESOLUTION_4096
@ LIGHT_PROBE_RESOLUTION_2048
@ LIGHT_PROBE_RESOLUTION_256
@ LIGHT_PROBE_RESOLUTION_128
@ LIGHT_PROBE_RESOLUTION_1024
struct AnimData * adt
float sun_shadow_jitter_overblur
float sun_shadow_maximum_resolution
eWorld_MistType mistype
eLightProbeResolution probe_resolution
ListBaseT< LinkData > gpumaterial
DNA_DEPRECATED short use_nodes
struct bNodeTree * nodetree
struct LightgroupMembership * lightgroup
float sun_shadow_filter_radius
struct PreviewImage * preview