Blender V5.3
DNA_shader_fx_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_enum_flags.hh"
12
13struct DRWShadingGroup;
14namespace blender {
15
16enum ShaderFxMode : int {
21 eShaderFxMode_Expanded_DEPRECATED = (1 << 3),
22#endif
23};
25
26enum ShaderFxFlag : short {
27 /* This fx has been inserted in local override, and hence can be fully edited. */
29};
31
33 FX_BLUR_DOF_MODE = (1 << 0),
34};
36
44
47 FX_FLIP_VERTICAL = (1 << 1),
48};
50
55
58};
60
63};
65
74
78};
80
85
86/* WARNING ALERT! TYPEDEF VALUES ARE WRITTEN IN FILES! SO DO NOT CHANGE!
87 * (ONLY ADD NEW ITEMS AT THE END)
88 */
89
105
107 struct ShaderFxData *next = nullptr, *prev = nullptr;
108
111 char _pad0[4] = {};
113 /* An "expand" bit for each of the constraint's (sub)panels (uiPanelDataExpansion). */
114 short ui_expand_flag = 0;
115 char name[/*MAX_NAME*/ 64] = "";
116
117 char *error = nullptr;
118};
119
122 float loc[3] = {};
123 char _pad[4] = {};
124 struct DRWShadingGroup *fx_sh = nullptr;
125 struct DRWShadingGroup *fx_sh_b = nullptr;
126 struct DRWShadingGroup *fx_sh_c = nullptr;
127};
128
142
155
164
183
193
207
210 struct Object *object = nullptr;
211 int offset[2] = {};
214 float shadow_rgba[4] = {};
215 float amplitude = 0;
216 float period = 0;
217 float phase = 0;
218 int orientation = 0;
219 float scale[2] = {};
220 float rotation = 0;
221 int blur[2] = {};
222 int samples = 0;
223 char _pad[4] = {};
225};
226
238
241 float amplitude = 0;
242 float period = 0;
243 float phase = 0;
244 int orientation = 0;
246 int flag = 0;
247 char _pad[4] = {};
249};
250
251} // namespace blender
#define ENUM_OPERATORS(_enum_type)
BMesh Iterators.
@ eShaderFxFlag_OverrideLibrary_Local
@ eShaderFxType_Light_deprecated
@ eShaderFxColorizeMode_Custom
@ eShaderFxColorizeMode_Transparent
@ eShaderFxColorizeMode_Duotone
@ eShaderFxColorizeMode_GrayScale
@ eShaderFxColorizeMode_Sepia
@ eShaderFxGlowMode_Luminance
ShaderFxData_Runtime runtime
struct DRWShadingGroup * fx_sh_b
struct DRWShadingGroup * fx_sh
struct DRWShadingGroup * fx_sh_c
struct ShaderFxData * prev
struct ShaderFxData * next
#define DNA_DEPRECATED_ALLOW
Definition versioning.cc:11