Blender  V2.93
Functions | Variables
node_shader_ambient_occlusion.c File Reference
#include "../node_shader_util.h"

Go to the source code of this file.

Functions

static int node_shader_gpu_ambient_occlusion (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
 
static void node_shader_init_ambient_occlusion (bNodeTree *UNUSED(ntree), bNode *node)
 
void register_node_type_sh_ambient_occlusion (void)
 

Variables

static bNodeSocketTemplate sh_node_ambient_occlusion_in []
 
static bNodeSocketTemplate sh_node_ambient_occlusion_out []
 

Function Documentation

◆ node_shader_gpu_ambient_occlusion()

static int node_shader_gpu_ambient_occlusion ( GPUMaterial mat,
bNode node,
bNodeExecData UNUSEDexecdata,
GPUNodeStack in,
GPUNodeStack out 
)
static

◆ node_shader_init_ambient_occlusion()

static void node_shader_init_ambient_occlusion ( bNodeTree UNUSEDntree,
bNode node 
)
static

Definition at line 61 of file node_shader_ambient_occlusion.c.

References node.

Referenced by register_node_type_sh_ambient_occlusion().

◆ register_node_type_sh_ambient_occlusion()

void register_node_type_sh_ambient_occlusion ( void  )

Variable Documentation

◆ sh_node_ambient_occlusion_in

bNodeSocketTemplate sh_node_ambient_occlusion_in[]
static
Initial value:
= {
{SOCK_RGBA, N_("Color"), 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f},
{SOCK_FLOAT, N_("Distance"), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1000.0f},
{SOCK_VECTOR, N_("Normal"), 0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f, PROP_NONE, SOCK_HIDE_VALUE},
{-1, ""},
}
#define N_(msgid)
@ SOCK_HIDE_VALUE
@ SOCK_VECTOR
@ SOCK_FLOAT
@ SOCK_RGBA
@ PROP_NONE
Definition: RNA_types.h:113

Definition at line 24 of file node_shader_ambient_occlusion.c.

Referenced by register_node_type_sh_ambient_occlusion().

◆ sh_node_ambient_occlusion_out

bNodeSocketTemplate sh_node_ambient_occlusion_out[]
static
Initial value:
= {
{SOCK_RGBA, N_("Color"), 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f},
{SOCK_FLOAT, N_("AO"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
{-1, ""},
}

Definition at line 31 of file node_shader_ambient_occlusion.c.

Referenced by register_node_type_sh_ambient_occlusion().