Blender V2.61 - r43446
|
#include "../node_shader_util.h"
Go to the source code of this file.
Functions | |
static int | node_shader_gpu_bsdf_glass (GPUMaterial *mat, bNode *UNUSED(node), GPUNodeStack *in, GPUNodeStack *out) |
void | register_node_type_sh_bsdf_glass (bNodeTreeType *ttype) |
Variables | |
static bNodeSocketTemplate | sh_node_bsdf_glass_in [] |
static bNodeSocketTemplate | sh_node_bsdf_glass_out [] |
static int node_shader_gpu_bsdf_glass | ( | GPUMaterial * | mat, |
bNode * | UNUSEDnode, | ||
GPUNodeStack * | in, | ||
GPUNodeStack * | out | ||
) | [static] |
Definition at line 44 of file node_shader_bsdf_glass.c.
References GPU_builtin(), GPU_stack_link(), GPU_VIEW_NORMAL, and GPU_VIEW_POSITION.
Referenced by register_node_type_sh_bsdf_glass().
void register_node_type_sh_bsdf_glass | ( | bNodeTreeType * | ttype | ) |
Definition at line 50 of file node_shader_bsdf_glass.c.
References NODE_CLASS_SHADER, NODE_NEW_SHADING, NODE_OPTIONS, node_shader_gpu_bsdf_glass(), node_type_base(), node_type_compatibility(), node_type_exec(), node_type_gpu(), node_type_init(), node_type_size(), node_type_socket_templates(), node_type_storage(), nodeRegisterType(), NULL, and SH_NODE_BSDF_GLASS.
Referenced by registerShaderNodes().
bNodeSocketTemplate sh_node_bsdf_glass_in[] [static] |
{ { SOCK_RGBA, 1, "Color", 0.8f, 0.8f, 0.8f, 1.0f, 0.0f, 1.0f}, { SOCK_FLOAT, 1, "Roughness", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_FLOAT, 1, "IOR", 1.45f, 0.0f, 0.0f, 0.0f, 1.0f, 1000.0f}, { -1, 0, "" } }
Definition at line 32 of file node_shader_bsdf_glass.c.
bNodeSocketTemplate sh_node_bsdf_glass_out[] [static] |
{ { SOCK_SHADER, 0, "BSDF"}, { -1, 0, "" } }
Definition at line 39 of file node_shader_bsdf_glass.c.