|
Blender
V2.59
|
Go to the source code of this file.
Functions | |
| static void | node_shader_exec_geom (void *data, bNode *node, bNodeStack **UNUSED(in), bNodeStack **out) |
| static void | node_shader_init_geometry (bNode *node) |
| static int | gpu_shader_geom (GPUMaterial *mat, bNode *node, GPUNodeStack *in, GPUNodeStack *out) |
| void | register_node_type_sh_geom (ListBase *lb) |
Variables | |
| static bNodeSocketType | sh_node_geom_out [] |
Definition in file SHD_geom.c.
| static int gpu_shader_geom | ( | GPUMaterial * | mat, |
| bNode * | node, | ||
| GPUNodeStack * | in, | ||
| GPUNodeStack * | out | ||
| ) | [static] |
Definition at line 126 of file SHD_geom.c.
References CD_MCOL, CD_MTFACE, CD_ORCO, NodeGeometry::colname, GPU_attribute(), GPU_builtin(), GPU_INVERSE_VIEW_MATRIX, GPU_stack_link(), GPU_VIEW_NORMAL, GPU_VIEW_POSITION, bNode::storage, and NodeGeometry::uvname.
Referenced by register_node_type_sh_geom().
| static void node_shader_exec_geom | ( | void * | data, |
| bNode * | node, | ||
| bNodeStack ** | UNUSEDin, | ||
| bNodeStack ** | out | ||
| ) | [static] |
Definition at line 55 of file SHD_geom.c.
References ShadeInput::actuv, ShadeInputCol::col, bNodeStack::data, bNodeStack::datatype, GEOM_OUT_FRONTBACK, GEOM_OUT_GLOB, GEOM_OUT_LOCAL, GEOM_OUT_NORMAL, GEOM_OUT_ORCO, GEOM_OUT_UV, GEOM_OUT_VCOL, GEOM_OUT_VIEW, i, NS_OSA_VALUES, NS_OSA_VECTORS, bNode::storage, ShadeInput::uv, bNodeStack::vec, and VECCOPY.
Referenced by register_node_type_sh_geom().
| static void node_shader_init_geometry | ( | bNode * | node | ) | [static] |
Definition at line 121 of file SHD_geom.c.
References MEM_callocN(), and bNode::storage.
Referenced by register_node_type_sh_geom().
| void register_node_type_sh_geom | ( | ListBase * | lb | ) |
Definition at line 139 of file SHD_geom.c.
References gpu_shader_geom(), NODE_CLASS_INPUT, node_copy_standard_storage(), node_free_standard_storage(), NODE_OPTIONS, node_shader_exec_geom(), node_shader_init_geometry(), node_type_base(), node_type_exec(), node_type_gpu(), node_type_init(), node_type_size(), node_type_storage(), nodeRegisterType(), NULL, and SH_NODE_GEOMETRY.
Referenced by registerShaderNodes().
bNodeSocketType sh_node_geom_out[] [static] |
{
{ SOCK_VECTOR, 0, "Global", 0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f},
{ SOCK_VECTOR, 0, "Local", 0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f},
{ SOCK_VECTOR, 0, "View", 0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f},
{ SOCK_VECTOR, 0, "Orco", 0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f},
{ SOCK_VECTOR, 0, "UV", 0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f},
{ SOCK_VECTOR, 0, "Normal", 0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f},
{ SOCK_RGBA, 0, "Vertex Color", 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
{ SOCK_VALUE, 0, "Front/Back", 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
{ -1, 0, "" }
}
Definition at line 42 of file SHD_geom.c.