Blender  V2.59
Functions | Variables
SHD_camera.c File Reference
#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 []

Detailed Description

Definition in file SHD_camera.c.


Function Documentation

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)

Variable Documentation

Initial value:
 {
        {       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.