Blender V5.0
blender::nodes::node_composite_color_spill_cc Namespace Reference

Enumerations

enum class  RGBChannel : uint8_t { R = 0 , G = 1 , B = 2 }

Functions

static void cmp_node_color_spill_declare (NodeDeclarationBuilder &b)
static void node_composit_init_color_spill (bNodeTree *, bNode *node)
static int node_gpu_material (GPUMaterial *material, bNode *node, bNodeExecData *, GPUNodeStack *inputs, GPUNodeStack *outputs)
static int2 compute_limit_channels (const CMPNodeColorSpillLimitAlgorithm limit_method, const int spill_channel, const int limit_channel)
static float3 compute_spill_scale (const bool use_spill_strength, const float4 spill_strength, const int spill_channel)
static float4 color_spill (const float4 color, const float factor, const int spill_channel, const CMPNodeColorSpillLimitAlgorithm limit_method, const int limit_channel, const float limit_scale, const bool use_spill_strength, const float4 spill_strength)
static void node_build_multi_function (blender::nodes::NodeMultiFunctionBuilder &builder)

Variables

static const EnumPropertyItem rgb_channel_items []
static const EnumPropertyItem limit_method_items []

Enumeration Type Documentation

◆ RGBChannel

Enumerator

Definition at line 21 of file node_composite_color_spill.cc.

Function Documentation

◆ cmp_node_color_spill_declare()

◆ color_spill()

float4 blender::nodes::node_composite_color_spill_cc::color_spill ( const float4 color,
const float factor,
const int spill_channel,
const CMPNodeColorSpillLimitAlgorithm limit_method,
const int limit_channel,
const float limit_scale,
const bool use_spill_strength,
const float4 spill_strength )
static

◆ compute_limit_channels()

int2 blender::nodes::node_composite_color_spill_cc::compute_limit_channels ( const CMPNodeColorSpillLimitAlgorithm limit_method,
const int spill_channel,
const int limit_channel )
static

Definition at line 119 of file node_composite_color_spill.cc.

References CMP_NODE_COLOR_SPILL_LIMIT_ALGORITHM_AVERAGE.

Referenced by color_spill().

◆ compute_spill_scale()

float3 blender::nodes::node_composite_color_spill_cc::compute_spill_scale ( const bool use_spill_strength,
const float4 spill_strength,
const int spill_channel )
static

Definition at line 133 of file node_composite_color_spill.cc.

References blender::VecBase< T, Size >::xyz().

Referenced by color_spill().

◆ node_build_multi_function()

void blender::nodes::node_composite_color_spill_cc::node_build_multi_function ( blender::nodes::NodeMultiFunctionBuilder & builder)
static

◆ node_composit_init_color_spill()

void blender::nodes::node_composite_color_spill_cc::node_composit_init_color_spill ( bNodeTree * ,
bNode * node )
static

Definition at line 99 of file node_composite_color_spill.cc.

References MEM_callocN(), and bNode::storage.

◆ node_gpu_material()

int blender::nodes::node_composite_color_spill_cc::node_gpu_material ( GPUMaterial * material,
bNode * node,
bNodeExecData * ,
GPUNodeStack * inputs,
GPUNodeStack * outputs )
static

Definition at line 107 of file node_composite_color_spill.cc.

References GPU_stack_link(), inputs, and outputs.

Variable Documentation

◆ limit_method_items

const EnumPropertyItem blender::nodes::node_composite_color_spill_cc::limit_method_items[]
static
Initial value:
= {
"SINGLE",
0,
N_("Single"),
N_("Limit by a single channel")},
"AVERAGE",
0,
N_("Average"),
N_("Limit by the average of the other two channels")},
{0, nullptr, 0, nullptr, nullptr},
}
@ CMP_NODE_COLOR_SPILL_LIMIT_ALGORITHM_AVERAGE
@ CMP_NODE_COLOR_SPILL_LIMIT_ALGORITHM_SINGLE
#define N_(msgid)

Definition at line 34 of file node_composite_color_spill.cc.

Referenced by cmp_node_color_spill_declare().

◆ rgb_channel_items

const EnumPropertyItem blender::nodes::node_composite_color_spill_cc::rgb_channel_items[]
static