|
Blender
V2.59
|
#include "../SHD_util.h"Go to the source code of this file.
Functions | |
| static void | node_shader_exec_camera (void *data, bNode *UNUSED(node), bNodeStack **UNUSED(in), bNodeStack **out) |
| static int | gpu_shader_camera (GPUMaterial *mat, bNode *UNUSED(node), GPUNodeStack *in, GPUNodeStack *out) |
| void | register_node_type_sh_camera (ListBase *lb) |
Variables | |
| static bNodeSocketType | sh_node_camera_out [] |
Definition in file SHD_camera.c.
| static int gpu_shader_camera | ( | GPUMaterial * | mat, |
| bNode * | UNUSEDnode, | ||
| GPUNodeStack * | in, | ||
| GPUNodeStack * | out | ||
| ) | [static] |
Definition at line 57 of file SHD_camera.c.
References GPU_builtin(), GPU_stack_link(), and GPU_VIEW_POSITION.
Referenced by register_node_type_sh_camera().
| static void node_shader_exec_camera | ( | void * | data, |
| bNode * | UNUSEDnode, | ||
| bNodeStack ** | UNUSEDin, | ||
| bNodeStack ** | out | ||
| ) | [static] |
Definition at line 46 of file SHD_camera.c.
References ShadeInput::co, fabs(), normalize_v3(), bNodeStack::vec, and VECCOPY.
Referenced by register_node_type_sh_camera().
| void register_node_type_sh_camera | ( | ListBase * | lb | ) |
Definition at line 62 of file SHD_camera.c.
References gpu_shader_camera(), NODE_CLASS_INPUT, node_shader_exec_camera(), node_type_base(), node_type_exec(), node_type_gpu(), node_type_size(), node_type_storage(), nodeRegisterType(), NULL, and SH_NODE_CAMERA.
Referenced by registerShaderNodes().
bNodeSocketType sh_node_camera_out[] [static] |
{
{ SOCK_VECTOR, 0, "View Vector", 1.0f, 0.0f, 0.0f, 0.0f, -1.0f, 1.0f},
{ SOCK_VALUE, 0, "View Z Depth", 0.f, 0.0f, 0.0f, 0.0f, 0.0f, 99999999999.0f},
{ SOCK_VALUE, 0, "View Distance", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 99999999999.0f},
{ -1, 0, "" }
}
Definition at line 38 of file SHD_camera.c.