Cleanup: indentation, wrapping
Mostly functions wrapping args, not confirming to our style guide.
This commit is contained in:
@@ -59,10 +59,12 @@ static void node_shader_exec_mix_rgb(void *UNUSED(data), int UNUSED(thread), bNo
|
||||
|
||||
static int gpu_shader_mix_rgb(GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
|
||||
{
|
||||
static const char *names[] = {"mix_blend", "mix_add", "mix_mult", "mix_sub",
|
||||
"mix_screen", "mix_div", "mix_diff", "mix_dark", "mix_light",
|
||||
"mix_overlay", "mix_dodge", "mix_burn", "mix_hue", "mix_sat",
|
||||
"mix_val", "mix_color", "mix_soft", "mix_linear"};
|
||||
static const char *names[] = {
|
||||
"mix_blend", "mix_add", "mix_mult", "mix_sub",
|
||||
"mix_screen", "mix_div", "mix_diff", "mix_dark", "mix_light",
|
||||
"mix_overlay", "mix_dodge", "mix_burn", "mix_hue", "mix_sat",
|
||||
"mix_val", "mix_color", "mix_soft", "mix_linear",
|
||||
};
|
||||
|
||||
int ret = GPU_stack_link(mat, node, names[node->custom1], in, out);
|
||||
if (ret && node->custom2 & SHD_MIXRGB_CLAMP) {
|
||||
|
||||
@@ -50,8 +50,9 @@ static int node_shader_gpu_tangent(GPUMaterial *mat, bNode *node, bNodeExecData
|
||||
else
|
||||
GPU_link(mat, "tangent_orco_z", orco, &orco);
|
||||
|
||||
return GPU_stack_link(mat, node, "node_tangent", in, out, GPU_builtin(GPU_VIEW_NORMAL), orco,
|
||||
GPU_builtin(GPU_OBJECT_MATRIX), GPU_builtin(GPU_INVERSE_VIEW_MATRIX));
|
||||
return GPU_stack_link(
|
||||
mat, node, "node_tangent", in, out, GPU_builtin(GPU_VIEW_NORMAL), orco,
|
||||
GPU_builtin(GPU_OBJECT_MATRIX), GPU_builtin(GPU_INVERSE_VIEW_MATRIX));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -93,9 +93,11 @@ static void node_shader_exec_vect_math(void *UNUSED(data), int UNUSED(thread), b
|
||||
|
||||
static int gpu_shader_vect_math(GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
|
||||
{
|
||||
static const char *names[] = {"vec_math_add", "vec_math_sub",
|
||||
static const char *names[] = {
|
||||
"vec_math_add", "vec_math_sub",
|
||||
"vec_math_average", "vec_math_dot", "vec_math_cross",
|
||||
"vec_math_normalize"};
|
||||
"vec_math_normalize",
|
||||
};
|
||||
|
||||
switch (node->custom1) {
|
||||
case 0:
|
||||
|
||||
Reference in New Issue
Block a user