|
Blender V5.0
|
Functions | |
| static void | node_declare (NodeDeclarationBuilder &b) |
| static void | node_shader_init_principled (bNodeTree *, bNode *node) |
| static bool | might_have_tinted_specular (const GPUNodeStack &base_color, const GPUNodeStack &metallic, const GPUNodeStack &specular_tint) |
| 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 |
Definition at line 299 of file node_shader_bsdf_principled.cc.
References GPUNodeStack::might_be_tinted(), and GPUNodeStack::socket_not_zero().
Referenced by node_shader_gpu_bsdf_principled().
|
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::DeclarationListBuilder::add_input(), blender::nodes::DeclarationListBuilder::add_layout(), b, BLT_I18NCONTEXT_AMOUNT, BLT_I18NCONTEXT_ID_NODETREE, blender::nodes::SocketDeclaration::description, blender::nodes::SocketDeclaration::hide_value, min, uiLayout::prop(), PROP_DISTANCE, PROP_FACTOR, PROP_WAVELENGTH, ptr, sheen(), blender::nodes::SocketDeclaration::short_label, blender::nodes::decl::Float::subtype, and UI_ITEM_R_SPLIT_EMPTY_NAME.
|
static |
Definition at line 311 of file node_shader_bsdf_principled.cc.
References CD_ORCO, bNode::custom1, flag, GPU_attribute(), GPU_constant(), GPU_link(), GPU_material_flag_set(), GPU_MATFLAG_COAT, GPU_MATFLAG_DIFFUSE, GPU_MATFLAG_GLOSSY, GPU_MATFLAG_REFLECTION_MAYBE_COLORED, GPU_MATFLAG_REFRACT, GPU_MATFLAG_REFRACTION_MAYBE_COLORED, GPU_MATFLAG_SUBSURFACE, GPU_MATFLAG_TRANSPARENT, GPU_stack_link(), in, might_have_tinted_specular(), out, SHD_GLOSSY_MULTI_GGX, SOCK_ALPHA_ID, SOCK_BASE_COLOR_ID, SOCK_COAT_NORMAL_ID, SOCK_COAT_TINT_ID, SOCK_COAT_WEIGHT_ID, SOCK_METALLIC_ID, SOCK_NORMAL_ID, SOCK_SHEEN_WEIGHT_ID, SOCK_SPECULAR_TINT_ID, SOCK_SUBSURFACE_WEIGHT_ID, SOCK_TANGENT_ID, and SOCK_TRANSMISSION_WEIGHT_ID.
|
static |
Definition at line 293 of file node_shader_bsdf_principled.cc.
References bNode::custom1, bNode::custom2, SHD_GLOSSY_MULTI_GGX, and SHD_SUBSURFACE_RANDOM_WALK.
|
static |
Definition at line 398 of file node_shader_bsdf_principled.cc.
References bNode::custom2, blender::bke::node_find_socket(), blender::bke::node_set_socket_availability(), SHD_SUBSURFACE_BURLEY, SHD_SUBSURFACE_RANDOM_WALK_SKIN, and SOCK_IN.