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

Typedefs

using Color

Enumerations

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

Functions

static void node_declare (NodeDeclarationBuilder &b)
static void node_init (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 (nodes::NodeMultiFunctionBuilder &builder)
static void node_register ()

Variables

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

Typedef Documentation

◆ Color

Definition at line 96 of file COM_result.hh.

Enumeration Type Documentation

◆ RGBChannel

Enumerator
R 
G 
B 

Definition at line 19 of file node_composite_color_spill.cc.

Function Documentation

◆ 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

◆ 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

◆ node_build_multi_function()

◆ node_declare()

◆ node_gpu_material()

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

◆ node_init()

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

Definition at line 97 of file node_composite_color_spill.cc.

References node, and node_init().

Referenced by node_init(), and node_register().

◆ node_register()

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 32 of file node_composite_color_spill.cc.

Referenced by node_declare().

◆ rgb_channel_items

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