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

Functions

static void sh_node_vector_rotate_declare (NodeDeclarationBuilder &b)
static void node_shader_buts_vector_rotate (uiLayout *layout, bContext *, PointerRNA *ptr)
static const char * gpu_shader_get_name (int mode)
static int gpu_shader_vector_rotate (GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
static float3 sh_node_vector_rotate_around_axis (const float3 &vector, const float3 &center, const float3 &axis, const float angle)
static float3 sh_node_vector_rotate_euler (const float3 &vector, const float3 &center, const float3 &rotation, const bool invert)
static const mf::MultiFunction * get_multi_function (const bNode &node)
static void sh_node_vector_rotate_build_multi_function (NodeMultiFunctionBuilder &builder)
static void node_shader_update_vector_rotate (bNodeTree *ntree, bNode *node)

Function Documentation

◆ get_multi_function()

◆ gpu_shader_get_name()

const char * blender::nodes::node_shader_vector_rotate_cc::gpu_shader_get_name ( int mode)
static

◆ gpu_shader_vector_rotate()

int blender::nodes::node_shader_vector_rotate_cc::gpu_shader_vector_rotate ( GPUMaterial * mat,
bNode * node,
bNodeExecData * ,
GPUNodeStack * in,
GPUNodeStack * out )
static

◆ node_shader_buts_vector_rotate()

void blender::nodes::node_shader_vector_rotate_cc::node_shader_buts_vector_rotate ( uiLayout * layout,
bContext * ,
PointerRNA * ptr )
static

Definition at line 50 of file node_shader_vector_rotate.cc.

References uiLayout::prop(), ptr, and UI_ITEM_R_SPLIT_EMPTY_NAME.

◆ node_shader_update_vector_rotate()

void blender::nodes::node_shader_vector_rotate_cc::node_shader_update_vector_rotate ( bNodeTree * ntree,
bNode * node )
static

◆ sh_node_vector_rotate_around_axis()

float3 blender::nodes::node_shader_vector_rotate_cc::sh_node_vector_rotate_around_axis ( const float3 & vector,
const float3 & center,
const float3 & axis,
const float angle )
static

Definition at line 90 of file node_shader_vector_rotate.cc.

References angle(), axis_angle_to_mat3(), mul_m3_v3(), and result.

Referenced by get_multi_function().

◆ sh_node_vector_rotate_build_multi_function()

void blender::nodes::node_shader_vector_rotate_cc::sh_node_vector_rotate_build_multi_function ( NodeMultiFunctionBuilder & builder)
static

◆ sh_node_vector_rotate_declare()

◆ sh_node_vector_rotate_euler()

float3 blender::nodes::node_shader_vector_rotate_cc::sh_node_vector_rotate_euler ( const float3 & vector,
const float3 & center,
const float3 & rotation,
const bool invert )
static

Definition at line 102 of file node_shader_vector_rotate.cc.

References eul_to_mat3(), invert(), invert_m3(), mul_m3_v3(), and result.

Referenced by get_multi_function().