diff options
Diffstat (limited to 'source/blender/shader_fx/intern/FX_shader_blur.c')
-rw-r--r-- | source/blender/shader_fx/intern/FX_shader_blur.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/shader_fx/intern/FX_shader_blur.c b/source/blender/shader_fx/intern/FX_shader_blur.c index 72d2a61dafd..e98205897aa 100644 --- a/source/blender/shader_fx/intern/FX_shader_blur.c +++ b/source/blender/shader_fx/intern/FX_shader_blur.c @@ -23,6 +23,7 @@ #include <stdio.h> +#include "BLI_math.h" #include "BLI_utildefines.h" #include "FX_shader_types.h" @@ -30,9 +31,9 @@ static void initData(ShaderFxData *fx) { BlurShaderFxData *gpfx = (BlurShaderFxData *)fx; - ARRAY_SET_ITEMS(gpfx->radius, 1, 1); - gpfx->samples = 4; - gpfx->coc = 0.025f; + copy_v2_fl(gpfx->radius, 50.0f); + gpfx->samples = 8; + gpfx->rotation = 0.0f; } static void copyData(const ShaderFxData *md, ShaderFxData *target) @@ -45,7 +46,7 @@ ShaderFxTypeInfo shaderfx_Type_Blur = { /* structName */ "BlurShaderFxData", /* structSize */ sizeof(BlurShaderFxData), /* type */ eShaderFxType_GpencilType, - /* flags */ eShaderFxTypeFlag_Single, + /* flags */ 0, /* copyData */ copyData, |