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

Functions

static void cmp_node_normal_declare (NodeDeclarationBuilder &b)
static float3 get_normal (const bNode &node)
static int node_gpu_material (GPUMaterial *material, bNode *node, bNodeExecData *, GPUNodeStack *, GPUNodeStack *outputs)
static void node_build_multi_function (blender::nodes::NodeMultiFunctionBuilder &builder)

Function Documentation

◆ cmp_node_normal_declare()

void blender::nodes::node_composite_normal_cc::cmp_node_normal_declare ( NodeDeclarationBuilder & b)
static

Definition at line 26 of file node_composite_normal.cc.

References b, min, PROP_DIRECTION, and blender::nodes::decl::Vector::subtype.

◆ get_normal()

float3 blender::nodes::node_composite_normal_cc::get_normal ( const bNode & node)
static

Definition at line 39 of file node_composite_normal.cc.

References blender::math::normalize().

Referenced by node_build_multi_function(), and node_gpu_material().

◆ node_build_multi_function()

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

◆ node_gpu_material()

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

Definition at line 46 of file node_composite_normal.cc.

References get_normal(), GPU_link(), GPU_uniform(), and outputs.