diff options
Diffstat (limited to 'source/blender/shader_fx/intern/FX_shader_glow.c')
-rw-r--r-- | source/blender/shader_fx/intern/FX_shader_glow.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/shader_fx/intern/FX_shader_glow.c b/source/blender/shader_fx/intern/FX_shader_glow.c index 1b1e4dc9d94..8924a1ab8b9 100644 --- a/source/blender/shader_fx/intern/FX_shader_glow.c +++ b/source/blender/shader_fx/intern/FX_shader_glow.c @@ -27,6 +27,7 @@ #include "DNA_object_types.h" #include "DNA_gpencil_types.h" +#include "BLI_math.h" #include "BLI_utildefines.h" #include "BKE_modifier.h" @@ -37,12 +38,11 @@ static void initData(ShaderFxData *md) { GlowShaderFxData *gpfx = (GlowShaderFxData *)md; - ARRAY_SET_ITEMS(gpfx->glow_color, 0.75f, 1.0f, 1.0f); + ARRAY_SET_ITEMS(gpfx->glow_color, 0.75f, 1.0f, 1.0f, 1.0f); ARRAY_SET_ITEMS(gpfx->select_color, 0.0f, 0.0f, 0.0f); + copy_v2_fl(gpfx->blur, 50.0f); gpfx->threshold = 0.1f; - - ARRAY_SET_ITEMS(gpfx->blur, 50, 0); - gpfx->samples = 16; + gpfx->samples = 8; } static void copyData(const ShaderFxData *md, ShaderFxData *target) |