![]() |
Blender V2.61 - r43446
|
#include "node_shader_util.h"Go to the source code of this file.
Functions | |
| static void | node_shader_exec_vect_math (void *UNUSED(data), bNode *node, bNodeStack **in, bNodeStack **out) |
| static int | gpu_shader_vect_math (GPUMaterial *mat, bNode *node, GPUNodeStack *in, GPUNodeStack *out) |
| void | register_node_type_sh_vect_math (bNodeTreeType *ttype) |
Variables | |
| static bNodeSocketTemplate | sh_node_vect_math_in [] |
| static bNodeSocketTemplate | sh_node_vect_math_out [] |
Definition in file node_shader_vectMath.c.
| static int gpu_shader_vect_math | ( | GPUMaterial * | mat, |
| bNode * | node, | ||
| GPUNodeStack * | in, | ||
| GPUNodeStack * | out | ||
| ) | [static] |
Definition at line 105 of file node_shader_vectMath.c.
References bNode::custom1, GPU_socket(), GPU_stack_link(), names, and NULL.
Referenced by register_node_type_sh_vect_math().
| static void node_shader_exec_vect_math | ( | void * | UNUSEDdata, |
| bNode * | node, | ||
| bNodeStack ** | in, | ||
| bNodeStack ** | out | ||
| ) | [static] |
Definition at line 50 of file node_shader_vectMath.c.
References bNode::custom1, fabs(), nodestack_get_vec(), normalize_v3(), SOCK_VECTOR, and bNodeStack::vec.
Referenced by register_node_type_sh_vect_math().
| void register_node_type_sh_vect_math | ( | bNodeTreeType * | ttype | ) |
Definition at line 133 of file node_shader_vectMath.c.
References gpu_shader_vect_math(), NODE_CLASS_CONVERTOR, NODE_NEW_SHADING, NODE_OLD_SHADING, NODE_OPTIONS, node_shader_exec_vect_math(), node_type_base(), node_type_compatibility(), node_type_exec(), node_type_gpu(), node_type_label(), node_type_size(), node_type_socket_templates(), node_type_storage(), node_vect_math_label(), nodeRegisterType(), NULL, and SH_NODE_VECT_MATH.
Referenced by registerShaderNodes().
bNodeSocketTemplate sh_node_vect_math_in[] [static] |
{
{ SOCK_VECTOR, 1, "Vector", 0.5f, 0.5f, 0.5f, 1.0f, 0.0f, 1.0f, PROP_NONE},
{ SOCK_VECTOR, 1, "Vector", 0.5f, 0.5f, 0.5f, 1.0f, 0.0f, 1.0f, PROP_NONE},
{ -1, 0, "" }
}
Definition at line 38 of file node_shader_vectMath.c.
bNodeSocketTemplate sh_node_vect_math_out[] [static] |
{
{ SOCK_VECTOR, 0, "Vector"},
{ SOCK_FLOAT, 0, "Value"},
{ -1, 0, "" }
}
Definition at line 44 of file node_shader_vectMath.c.