Blender  V3.3
Functions
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 *UNUSED(C), PointerRNA *ptr)
 
static const char * gpu_shader_get_name (int mode)
 
static int gpu_shader_vector_rotate (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), 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 fn::MultiFunctionget_multi_function (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()

static const fn::MultiFunction* blender::nodes::node_shader_vector_rotate_cc::get_multi_function ( bNode node)
static

◆ 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 UNUSEDexecdata,
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 UNUSEDC,
PointerRNA ptr 
)
static

◆ 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 72 of file node_shader_vector_rotate.cc.

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

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

static void blender::nodes::node_shader_vector_rotate_cc::sh_node_vector_rotate_declare ( NodeDeclarationBuilder b)
static

◆ 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 84 of file node_shader_vector_rotate.cc.

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

Referenced by get_multi_function().