Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-09-30 12:19:04 +0300
committerAntonioya <blendergit@gmail.com>2018-09-30 12:49:02 +0300
commitf1afa6f6a71220fefcd3d967f261edd6ad93a43a (patch)
tree0e8fc19a9089a0434fdad495613a5075e92ea315 /source/blender/makesdna/DNA_shader_fx_types.h
parentd9f6fdae4b5ae0475f0cbc8114a87b3be21739db (diff)
GP: implement Shadow FX (wip)
Initial implementation of effect to create a drop shadow of the strokes
Diffstat (limited to 'source/blender/makesdna/DNA_shader_fx_types.h')
-rw-r--r--source/blender/makesdna/DNA_shader_fx_types.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_shader_fx_types.h b/source/blender/makesdna/DNA_shader_fx_types.h
index f3c9f06c8dc..62a1d705f3b 100644
--- a/source/blender/makesdna/DNA_shader_fx_types.h
+++ b/source/blender/makesdna/DNA_shader_fx_types.h
@@ -44,6 +44,7 @@ typedef enum ShaderFxType {
eShaderFxType_Wave = 6,
eShaderFxType_Rim = 7,
eShaderFxType_Colorize = 8,
+ eShaderFxType_Shadow = 9,
NUM_SHADER_FX_TYPES
} ShaderFxType;
@@ -169,6 +170,26 @@ typedef enum RimShaderFxModes {
eShaderFxRimMode_Divide = 5,
} RimShaderFxModes;
+typedef struct ShadowShaderFxData {
+ ShaderFxData shaderfx;
+ struct Object *object;
+ int offset[2];
+ int flag; /* flags */
+ float shadow_rgba[4];
+ float amplitude;
+ float period;
+ float phase;
+ int orientation;
+ float scale[2];
+ float rotation;
+ ShaderFxData_runtime runtime;
+} ShadowShaderFxData;
+
+typedef enum eShadowShaderFx_Flag {
+ FX_SHADOW_USE_OBJECT = (1 << 0),
+ FX_SHADOW_USE_WAVE = (1 << 1),
+} eShadowShaderFx_Flag;
+
typedef struct SwirlShaderFxData {
ShaderFxData shaderfx;
struct Object *object;