diff options
author | Antonioya <blendergit@gmail.com> | 2018-10-10 23:52:55 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-10-11 00:00:56 +0300 |
commit | c2519d8521687a802ce6cb6e9ca2e973693cf9a4 (patch) | |
tree | 27e20c8ed90d868de47ce1de8ab340b485e53751 /source/blender/makesdna/DNA_shader_fx_types.h | |
parent | d29f98e3f2a526d5dd13694c01aa27c4b81283fd (diff) |
GP: New Glow Shader FX (wip)
New shader to simulate a glow of the color.
The glow can be generated by luminance threshold or using a selection color.
Diffstat (limited to 'source/blender/makesdna/DNA_shader_fx_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_shader_fx_types.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_shader_fx_types.h b/source/blender/makesdna/DNA_shader_fx_types.h index 3884f72fb56..7c138f21887 100644 --- a/source/blender/makesdna/DNA_shader_fx_types.h +++ b/source/blender/makesdna/DNA_shader_fx_types.h @@ -45,6 +45,7 @@ typedef enum ShaderFxType { eShaderFxType_Rim = 7, eShaderFxType_Colorize = 8, eShaderFxType_Shadow = 9, + eShaderFxType_Glow = 10, NUM_SHADER_FX_TYPES } ShaderFxType; @@ -127,6 +128,27 @@ typedef enum eFlipShaderFx_Flag { FX_FLIP_VERTICAL = (1 << 1), } eFlipShaderFx_Flag; +typedef struct GlowShaderFxData { + ShaderFxData shaderfx; + float glow_color[3]; + float select_color[3]; + float threshold; + int flag; /* flags */ + int mode; + int blur[2]; + int samples; + ShaderFxData_Runtime runtime; +} GlowShaderFxData; + +typedef enum GlowShaderFxModes { + eShaderFxGlowMode_Luminance = 0, + eShaderFxGlowMode_Color = 1, +} GlowShaderFxModes; + +typedef enum eGlowShaderFx_Flag { + FX_GLOW_USE_ALPHA = (1 << 0), +} eGlowShaderFx_Flag; + typedef struct LightShaderFxData { ShaderFxData shaderfx; struct Object *object; |