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:
authorCampbell Barton <ideasman42@gmail.com>2019-04-17 07:17:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 07:21:24 +0300
commite12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch)
tree8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/shader_fx/intern/FX_shader_rim.c
parentb3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff)
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/shader_fx/intern/FX_shader_rim.c')
-rw-r--r--source/blender/shader_fx/intern/FX_shader_rim.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/source/blender/shader_fx/intern/FX_shader_rim.c b/source/blender/shader_fx/intern/FX_shader_rim.c
index d4e6d618e35..d16210918fc 100644
--- a/source/blender/shader_fx/intern/FX_shader_rim.c
+++ b/source/blender/shader_fx/intern/FX_shader_rim.c
@@ -31,35 +31,35 @@
static void initData(ShaderFxData *fx)
{
- RimShaderFxData *gpfx = (RimShaderFxData *)fx;
- ARRAY_SET_ITEMS(gpfx->offset, 50, -100);
- ARRAY_SET_ITEMS(gpfx->rim_rgb, 1.0f, 1.0f, 0.5f);
- ARRAY_SET_ITEMS(gpfx->mask_rgb, 0.0f, 0.0f, 0.0f);
- gpfx->mode = eShaderFxRimMode_Multiply;
+ RimShaderFxData *gpfx = (RimShaderFxData *)fx;
+ ARRAY_SET_ITEMS(gpfx->offset, 50, -100);
+ ARRAY_SET_ITEMS(gpfx->rim_rgb, 1.0f, 1.0f, 0.5f);
+ ARRAY_SET_ITEMS(gpfx->mask_rgb, 0.0f, 0.0f, 0.0f);
+ gpfx->mode = eShaderFxRimMode_Multiply;
- ARRAY_SET_ITEMS(gpfx->blur, 0, 0);
- gpfx->samples = 2;
+ ARRAY_SET_ITEMS(gpfx->blur, 0, 0);
+ gpfx->samples = 2;
}
static void copyData(const ShaderFxData *md, ShaderFxData *target)
{
- BKE_shaderfx_copyData_generic(md, target);
+ BKE_shaderfx_copyData_generic(md, target);
}
ShaderFxTypeInfo shaderfx_Type_Rim = {
- /* name */ "Rim",
- /* structName */ "RimShaderFxData",
- /* structSize */ sizeof(RimShaderFxData),
- /* type */ eShaderFxType_GpencilType,
- /* flags */ 0,
+ /* name */ "Rim",
+ /* structName */ "RimShaderFxData",
+ /* structSize */ sizeof(RimShaderFxData),
+ /* type */ eShaderFxType_GpencilType,
+ /* flags */ 0,
- /* copyData */ copyData,
+ /* copyData */ copyData,
- /* initData */ initData,
- /* freeData */ NULL,
- /* isDisabled */ NULL,
- /* updateDepsgraph */ NULL,
- /* dependsOnTime */ NULL,
- /* foreachObjectLink */ NULL,
- /* foreachIDLink */ NULL,
+ /* initData */ initData,
+ /* freeData */ NULL,
+ /* isDisabled */ NULL,
+ /* updateDepsgraph */ NULL,
+ /* dependsOnTime */ NULL,
+ /* foreachObjectLink */ NULL,
+ /* foreachIDLink */ NULL,
};