Blender
V3.3
|
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 ¢er, const float3 &axis, const float angle) |
static float3 | sh_node_vector_rotate_euler (const float3 &vector, const float3 ¢er, const float3 &rotation, const bool invert) |
static const fn::MultiFunction * | get_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) |
|
static |
Definition at line 99 of file node_shader_vector_rotate.cc.
References angle(), BLI_assert_unreachable, center, invert(), node, NODE_VECTOR_ROTATE_TYPE_AXIS, NODE_VECTOR_ROTATE_TYPE_AXIS_X, NODE_VECTOR_ROTATE_TYPE_AXIS_Y, NODE_VECTOR_ROTATE_TYPE_AXIS_Z, NODE_VECTOR_ROTATE_TYPE_EULER_XYZ, sh_node_vector_rotate_around_axis(), and sh_node_vector_rotate_euler().
Referenced by sh_node_vector_rotate_build_multi_function().
|
static |
Definition at line 38 of file node_shader_vector_rotate.cc.
References NODE_VECTOR_ROTATE_TYPE_AXIS, NODE_VECTOR_ROTATE_TYPE_AXIS_X, NODE_VECTOR_ROTATE_TYPE_AXIS_Y, NODE_VECTOR_ROTATE_TYPE_AXIS_Z, and NODE_VECTOR_ROTATE_TYPE_EULER_XYZ.
Referenced by gpu_shader_vector_rotate().
|
static |
Definition at line 56 of file node_shader_vector_rotate.cc.
References GPU_constant(), gpu_shader_get_name(), GPU_stack_link(), invert(), node, and usdtokens::out().
Referenced by register_node_type_sh_vector_rotate().
|
static |
Definition at line 32 of file node_shader_vector_rotate.cc.
References ptr, UI_ITEM_R_SPLIT_EMPTY_NAME, and uiItemR().
Referenced by register_node_type_sh_vector_rotate().
|
static |
Definition at line 192 of file node_shader_vector_rotate.cc.
References ELEM, node, NODE_VECTOR_ROTATE_TYPE_AXIS, NODE_VECTOR_ROTATE_TYPE_EULER_XYZ, nodeFindSocket(), nodeSetSocketAvailability(), ntree, and SOCK_IN.
Referenced by register_node_type_sh_vector_rotate().
|
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().
|
static |
Definition at line 186 of file node_shader_vector_rotate.cc.
References get_multi_function(), blender::nodes::NodeMultiFunctionBuilder::node(), and blender::nodes::NodeMultiFunctionBuilder::set_matching_fn().
Referenced by register_node_type_sh_vector_rotate().
|
static |
Definition at line 15 of file node_shader_vector_rotate.cc.
References usdtokens::b(), blender::nodes::SocketDeclaration::make_available(), min, N_, node, NODE_VECTOR_ROTATE_TYPE_AXIS, NODE_VECTOR_ROTATE_TYPE_EULER_XYZ, PROP_ANGLE, and PROP_EULER.
Referenced by register_node_type_sh_vector_rotate().
|
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().