|
Blender
V2.93
|
#include "../node_shader_util.h"Go to the source code of this file.
Macros | |
| #define | socket_not_zero(sock) (in[sock].link || (clamp_f(in[sock].vec[0], 0.0f, 1.0f) > 1e-5f)) |
| #define | socket_not_one(sock) (in[sock].link || (clamp_f(in[sock].vec[0], 0.0f, 1.0f) < 1.0f - 1e-5f)) |
Functions | |
| static void | node_shader_init_principled (bNodeTree *UNUSED(ntree), bNode *node) |
| static int | node_shader_gpu_bsdf_principled (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out) |
| static void | node_shader_update_principled (bNodeTree *UNUSED(ntree), bNode *node) |
| void | register_node_type_sh_bsdf_principled (void) |
Variables | |
| static bNodeSocketTemplate | sh_node_bsdf_principled_in [] |
| static bNodeSocketTemplate | sh_node_bsdf_principled_out [] |
| #define socket_not_one | ( | sock | ) | (in[sock].link || (clamp_f(in[sock].vec[0], 0.0f, 1.0f) < 1.0f - 1e-5f)) |
Definition at line 81 of file node_shader_bsdf_principled.c.
Definition at line 80 of file node_shader_bsdf_principled.c.
|
static |
Definition at line 84 of file node_shader_bsdf_principled.c.
References BLI_findlink(), CD_ORCO, bNodeSocket::default_value, GPU_attribute(), GPU_builtin(), GPU_constant(), GPU_link(), GPU_material_flag_set(), GPU_material_sss_profile_create(), GPU_MATFLAG_DIFFUSE, GPU_MATFLAG_GLOSSY, GPU_MATFLAG_REFRACT, GPU_MATFLAG_SSS, GPU_OBJECT_MATRIX, GPU_stack_link(), GPU_WORLD_NORMAL, GPUNodeStack::link, node, NULL, SHD_GLOSSY_MULTI_GGX, SHD_SUBSURFACE_BURLEY, socket_not_one, socket_not_zero, and bNodeSocketValueRGBA::value.
Referenced by register_node_type_sh_bsdf_principled().
Definition at line 74 of file node_shader_bsdf_principled.c.
References node, SHD_GLOSSY_GGX, and SHD_SUBSURFACE_BURLEY.
Referenced by register_node_type_sh_bsdf_principled().
Definition at line 169 of file node_shader_bsdf_principled.c.
References bNodeSocket::flag, bNodeSocket::name, bNodeSocket::next, node, SHD_GLOSSY_GGX, SOCK_UNAVAIL, and STREQ.
Referenced by register_node_type_sh_bsdf_principled().
| void register_node_type_sh_bsdf_principled | ( | void | ) |
Definition at line 187 of file node_shader_bsdf_principled.c.
References NODE_CLASS_SHADER, node_shader_gpu_bsdf_principled(), node_shader_init_principled(), node_shader_update_principled(), NODE_SIZE_LARGE, node_type_gpu(), node_type_init(), node_type_size_preset(), node_type_socket_templates(), node_type_storage(), node_type_update(), nodeRegisterType(), NULL, SH_NODE_BSDF_PRINCIPLED, sh_node_bsdf_principled_in, sh_node_bsdf_principled_out, and sh_node_type_base().
Referenced by registerShaderNodes().
|
static |
Definition at line 24 of file node_shader_bsdf_principled.c.
Referenced by register_node_type_sh_bsdf_principled().
|
static |
Definition at line 69 of file node_shader_bsdf_principled.c.
Referenced by register_node_type_sh_bsdf_principled().