Changeset View
Changeset View
Standalone View
Standalone View
source/blender/shader_fx/intern/FX_shader_glow.c
| Show All 21 Lines | |||||
| */ | */ | ||||
| #include <stdio.h> | #include <stdio.h> | ||||
| #include "DNA_scene_types.h" | #include "DNA_scene_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_gpencil_types.h" | #include "DNA_gpencil_types.h" | ||||
| #include "BLI_math.h" | |||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BKE_modifier.h" | #include "BKE_modifier.h" | ||||
| #include "BKE_shader_fx.h" | #include "BKE_shader_fx.h" | ||||
| #include "FX_shader_types.h" | #include "FX_shader_types.h" | ||||
| static void initData(ShaderFxData *md) | static void initData(ShaderFxData *md) | ||||
| { | { | ||||
| GlowShaderFxData *gpfx = (GlowShaderFxData *)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); | ARRAY_SET_ITEMS(gpfx->select_color, 0.0f, 0.0f, 0.0f); | ||||
| copy_v2_fl(gpfx->blur, 50.0f); | |||||
| gpfx->threshold = 0.1f; | gpfx->threshold = 0.1f; | ||||
| gpfx->samples = 8; | |||||
| ARRAY_SET_ITEMS(gpfx->blur, 50, 0); | |||||
| gpfx->samples = 16; | |||||
| } | } | ||||
| static void copyData(const ShaderFxData *md, ShaderFxData *target) | static void copyData(const ShaderFxData *md, ShaderFxData *target) | ||||
| { | { | ||||
| BKE_shaderfx_copyData_generic(md, target); | BKE_shaderfx_copyData_generic(md, target); | ||||
| } | } | ||||
| ShaderFxTypeInfo shaderfx_Type_Glow = { | ShaderFxTypeInfo shaderfx_Type_Glow = { | ||||
| Show All 16 Lines | |||||