Changeset View
Changeset View
Standalone View
Standalone View
source/blender/shader_fx/intern/FX_shader_rim.c
| Show All 29 Lines | |||||
| #include "FX_shader_types.h" | #include "FX_shader_types.h" | ||||
| static void initData(ShaderFxData *fx) | static void initData(ShaderFxData *fx) | ||||
| { | { | ||||
| RimShaderFxData *gpfx = (RimShaderFxData *)fx; | RimShaderFxData *gpfx = (RimShaderFxData *)fx; | ||||
| ARRAY_SET_ITEMS(gpfx->offset, 50, -100); | ARRAY_SET_ITEMS(gpfx->offset, 50, -100); | ||||
| ARRAY_SET_ITEMS(gpfx->rim_rgb, 1.0f, 1.0f, 0.5f); | ARRAY_SET_ITEMS(gpfx->rim_rgb, 1.0f, 1.0f, 0.5f); | ||||
| ARRAY_SET_ITEMS(gpfx->mask_rgb, 0.0f, 0.0f, 0.0f); | ARRAY_SET_ITEMS(gpfx->mask_rgb, 0.0f, 0.0f, 0.0f); | ||||
| gpfx->mode = eShaderFxRimMode_Multiply; | gpfx->mode = eShaderFxRimMode_Overlay; | ||||
| ARRAY_SET_ITEMS(gpfx->blur, 0, 0); | ARRAY_SET_ITEMS(gpfx->blur, 0, 0); | ||||
| gpfx->samples = 2; | gpfx->samples = 2; | ||||
| } | } | ||||
| 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); | ||||
| Show All 19 Lines | |||||