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-10-01 17:30:43 +0300
committerAntonioya <blendergit@gmail.com>2018-10-01 17:31:04 +0300
commita3afcae39ed03e0d62087992dac0b64f1a2a3138 (patch)
treeefba11cfc72a4da3d181e02071a36fc2236b5ba0 /source/blender/shader_fx
parentc234c3db1bcb6db868db26b2732775a51972b080 (diff)
GP: Add Blur to Shadow FX
The shadow needed a blur to make soft transitions and get a better effect.
Diffstat (limited to 'source/blender/shader_fx')
-rw-r--r--source/blender/shader_fx/intern/FX_shader_shadow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/shader_fx/intern/FX_shader_shadow.c b/source/blender/shader_fx/intern/FX_shader_shadow.c
index d0a2ffd4590..8d4c34b5864 100644
--- a/source/blender/shader_fx/intern/FX_shader_shadow.c
+++ b/source/blender/shader_fx/intern/FX_shader_shadow.c
@@ -58,6 +58,8 @@ static void initData(ShaderFxData *md)
gpfx->period = 20.0f;
gpfx->phase = 0.0f;
gpfx->orientation = 1;
+
+ ARRAY_SET_ITEMS(gpfx->blur, 0, 0);
}
static void copyData(const ShaderFxData *md, ShaderFxData *target)