|
Blender V4.3
|
Functions | |
| static void | node_declare (NodeDeclarationBuilder &b) |
| static void | node_shader_init_principled (bNodeTree *, bNode *node) |
| static int | node_shader_gpu_bsdf_principled (GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out) |
| static void | node_shader_update_principled (bNodeTree *ntree, bNode *node) |
|
static |
Define static socket numbers to avoid string based lookups for GPU material creation as these could run on animated materials.
Definition at line 18 of file node_shader_bsdf_principled.cc.
References blender::nodes::PanelDeclarationBuilder::add_input(), b, BLT_I18NCONTEXT_ID_NODETREE, blender::nodes::SocketDeclaration::description, blender::nodes::SocketDeclaration::hide_value, min, PROP_DISTANCE, PROP_FACTOR, PROP_WAVELENGTH, ptr, sheen(), blender::nodes::SocketDeclaration::short_label, blender::nodes::decl::Float::subtype, UI_ITEM_R_SPLIT_EMPTY_NAME, and uiItemR().
|
static |
Definition at line 295 of file node_shader_bsdf_principled.cc.
References BLI_findlink(), CD_ORCO, bNodeSocket::default_value, flag, GPU_attribute(), GPU_constant(), GPU_link(), GPU_material_flag_set(), GPU_material_sss_profile_create(), GPU_MATFLAG_COAT, GPU_MATFLAG_DIFFUSE, GPU_MATFLAG_GLOSSY, GPU_MATFLAG_REFRACT, GPU_MATFLAG_SUBSURFACE, GPU_MATFLAG_TRANSPARENT, GPU_stack_link(), SHD_GLOSSY_MULTI_GGX, SOCK_ALPHA_ID, SOCK_COAT_NORMAL_ID, SOCK_COAT_WEIGHT_ID, SOCK_METALLIC_ID, SOCK_NORMAL_ID, SOCK_SHEEN_WEIGHT_ID, SOCK_SUBSURFACE_RADIUS_ID, SOCK_SUBSURFACE_WEIGHT_ID, SOCK_TANGENT_ID, SOCK_TRANSMISSION_WEIGHT_ID, socket_not_one, socket_not_zero, and bNodeSocketValueRGBA::value.
|
static |
Definition at line 285 of file node_shader_bsdf_principled.cc.
References SHD_GLOSSY_MULTI_GGX, and SHD_SUBSURFACE_RANDOM_WALK.
|
static |
Definition at line 362 of file node_shader_bsdf_principled.cc.
References blender::bke::node_find_socket(), blender::bke::node_set_socket_availability(), SHD_SUBSURFACE_BURLEY, SHD_SUBSURFACE_RANDOM_WALK_SKIN, and SOCK_IN.