Blender V2.61 - r43446
Functions | Variables

node_shader_camera.c File Reference

#include "node_shader_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 (bNodeTreeType *ttype)

Variables

static bNodeSocketTemplate sh_node_camera_out []

Detailed Description

Definition in file node_shader_camera.c.


Function Documentation

static int gpu_shader_camera ( GPUMaterial mat,
bNode UNUSEDnode,
GPUNodeStack in,
GPUNodeStack out 
) [static]

Definition at line 55 of file node_shader_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]
void register_node_type_sh_camera ( bNodeTreeType ttype)

Variable Documentation

Initial value:
 {
    {   SOCK_VECTOR, 0, "View Vector"},
    {   SOCK_FLOAT, 0, "View Z Depth"},
    {   SOCK_FLOAT, 0, "View Distance"},
    {   -1, 0, ""   }
}

Definition at line 36 of file node_shader_camera.c.