Blender V4.3
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::MultiFunctionget_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()

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

◆ gpu_shader_vector_rotate()

static 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()

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

Definition at line 47 of file node_shader_vector_rotate.cc.

References ptr, UI_ITEM_R_SPLIT_EMPTY_NAME, and uiItemR().

◆ node_shader_update_vector_rotate()

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

◆ sh_node_vector_rotate_around_axis()

static 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 87 of file node_shader_vector_rotate.cc.

References axis_angle_to_mat3(), and mul_m3_v3().

Referenced by get_multi_function().

◆ sh_node_vector_rotate_build_multi_function()

static 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()

static 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 99 of file node_shader_vector_rotate.cc.

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

Referenced by get_multi_function().