|
Blender
V2.59
|
#include "../SHD_util.h"Go to the source code of this file.
Functions | |
| static void | node_shader_exec_math (void *UNUSED(data), bNode *node, bNodeStack **in, bNodeStack **out) |
| static int | gpu_shader_math (GPUMaterial *mat, bNode *node, GPUNodeStack *in, GPUNodeStack *out) |
| void | register_node_type_sh_math (ListBase *lb) |
Variables | |
| static bNodeSocketType | sh_node_math_in [] |
| static bNodeSocketType | sh_node_math_out [] |
Definition in file SHD_math.c.
| static int gpu_shader_math | ( | GPUMaterial * | mat, |
| bNode * | node, | ||
| GPUNodeStack * | in, | ||
| GPUNodeStack * | out | ||
| ) | [static] |
Definition at line 201 of file SHD_math.c.
References bNode::custom1, GPU_socket(), GPU_stack_link(), names, and NULL.
Referenced by register_node_type_sh_math().
| static void node_shader_exec_math | ( | void * | UNUSEDdata, |
| bNode * | node, | ||
| bNodeStack ** | in, | ||
| bNodeStack ** | out | ||
| ) | [static] |
Definition at line 50 of file SHD_math.c.
References acos(), KDL::asin(), KDL::atan(), cos(), bNode::custom1, KDL::log(), pow(), sin(), KDL::tan(), and bNodeStack::vec.
Referenced by register_node_type_sh_math().
| void register_node_type_sh_math | ( | ListBase * | lb | ) |
Definition at line 241 of file SHD_math.c.
References gpu_shader_math(), NODE_CLASS_CONVERTOR, node_math_label(), NODE_OPTIONS, node_shader_exec_math(), node_type_base(), node_type_exec(), node_type_gpu(), node_type_label(), node_type_size(), node_type_storage(), nodeRegisterType(), NULL, and SH_NODE_MATH.
Referenced by registerShaderNodes().
bNodeSocketType sh_node_math_in[] [static] |
{
{ SOCK_VALUE, 1, "Value", 0.5f, 0.5f, 0.5f, 1.0f, -100.0f, 100.0f},
{ SOCK_VALUE, 1, "Value", 0.5f, 0.5f, 0.5f, 1.0f, -100.0f, 100.0f},
{ -1, 0, "" }
}
Definition at line 39 of file SHD_math.c.
bNodeSocketType sh_node_math_out[] [static] |
{
{ SOCK_VALUE, 0, "Value", 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
{ -1, 0, "" }
}
Definition at line 45 of file SHD_math.c.