|
Blender
V2.59
|
#include "../SHD_util.h"Go to the source code of this file.
Functions | |
| static void | node_shader_exec_normal (void *UNUSED(data), bNode *node, bNodeStack **in, bNodeStack **out) |
| static int | gpu_shader_normal (GPUMaterial *mat, bNode *node, GPUNodeStack *in, GPUNodeStack *out) |
| void | register_node_type_sh_normal (ListBase *lb) |
Variables | |
| static bNodeSocketType | sh_node_normal_in [] |
| static bNodeSocketType | sh_node_normal_out [] |
Definition in file SHD_normal.c.
| static int gpu_shader_normal | ( | GPUMaterial * | mat, |
| bNode * | node, | ||
| GPUNodeStack * | in, | ||
| GPUNodeStack * | out | ||
| ) | [static] |
Definition at line 65 of file SHD_normal.c.
References ListBase::first, GPU_stack_link(), GPU_uniform(), bNodeSocket::ns, bNode::outputs, and bNodeStack::vec.
Referenced by register_node_type_sh_normal().
| static void node_shader_exec_normal | ( | void * | UNUSEDdata, |
| bNode * | node, | ||
| bNodeStack ** | in, | ||
| bNodeStack ** | out | ||
| ) | [static] |
Definition at line 50 of file SHD_normal.c.
References ListBase::first, INPR, nodestack_get_vec(), bNodeSocket::ns, bNode::outputs, SOCK_VECTOR, bNodeStack::vec, and VECCOPY.
Referenced by register_node_type_sh_normal().
| void register_node_type_sh_normal | ( | ListBase * | lb | ) |
Definition at line 73 of file SHD_normal.c.
References gpu_shader_normal(), NODE_CLASS_OP_VECTOR, NODE_OPTIONS, node_shader_exec_normal(), node_type_base(), node_type_exec(), node_type_gpu(), nodeRegisterType(), and SH_NODE_NORMAL.
Referenced by registerShaderNodes().
bNodeSocketType sh_node_normal_in[] [static] |
{
{ SOCK_VECTOR, 1, "Normal", 0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f},
{ -1, 0, "" }
}
Definition at line 38 of file SHD_normal.c.
bNodeSocketType sh_node_normal_out[] [static] |
{
{ SOCK_VECTOR, 0, "Normal", 0.0f, 0.0f, 1.0f, 1.0f, -1.0f, 1.0f},
{ SOCK_VALUE, 0, "Dot", 1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
{ -1, 0, "" }
}
Definition at line 43 of file SHD_normal.c.