Changeset View
Changeset View
Standalone View
Standalone View
source/blender/shader_fx/intern/FX_shader_shadow.c
| Show All 38 Lines | |||||
| #include "DEG_depsgraph_build.h" | #include "DEG_depsgraph_build.h" | ||||
| static void initData(ShaderFxData *md) | static void initData(ShaderFxData *md) | ||||
| { | { | ||||
| ShadowShaderFxData *gpfx = (ShadowShaderFxData *)md; | ShadowShaderFxData *gpfx = (ShadowShaderFxData *)md; | ||||
| gpfx->rotation = 0.0f; | gpfx->rotation = 0.0f; | ||||
| ARRAY_SET_ITEMS(gpfx->offset, 15, 20); | ARRAY_SET_ITEMS(gpfx->offset, 15, 20); | ||||
| ARRAY_SET_ITEMS(gpfx->scale, 1.0f, 1.0f); | ARRAY_SET_ITEMS(gpfx->scale, 1.0f, 1.0f); | ||||
| ARRAY_SET_ITEMS(gpfx->shadow_rgba, 0.54f, 0.62f, 1.0f, 0.9f); | ARRAY_SET_ITEMS(gpfx->shadow_rgba, 0.0f, 0.0f, 0.0f, 0.8f); | ||||
| gpfx->amplitude = 10.0f; | gpfx->amplitude = 10.0f; | ||||
| gpfx->period = 20.0f; | gpfx->period = 20.0f; | ||||
| gpfx->phase = 0.0f; | gpfx->phase = 0.0f; | ||||
| gpfx->orientation = 1; | gpfx->orientation = 1; | ||||
| ARRAY_SET_ITEMS(gpfx->blur, 5, 5); | ARRAY_SET_ITEMS(gpfx->blur, 5, 5); | ||||
| gpfx->samples = 2; | gpfx->samples = 2; | ||||
| ▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines | |||||