17 b.add_input<
decl::Float>(
"IOR"_ustr).default_value(1.5f).min(0.0f).max(1000.0f);
41 return get_input_value(
"IOR", NodeItem::Type::Float);
58 "Produce a blending factor depending on the angle between the surface normal and the view "
59 "direction using Fresnel equations.\nTypically used for mixing reflections at grazing "
63 ntype.
declare = file_ns::node_declare;
64 ntype.
gpu_fn = file_ns::node_shader_gpu_fresnel;
void node_register_type(bNodeType &ntype)
static int node_shader_gpu_fresnel(GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
static void node_declare(NodeDeclarationBuilder &b)
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
void sh_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
void register_node_type_sh_fresnel()
bool GPU_link(GPUMaterial *mat, const char *name,...)
GPUNodeLink * GPU_shading_data()
GPUNodeLink * GPU_kernel_globals()
#define NODE_SHADER_MATERIALX_BEGIN
#define NODE_SHADER_MATERIALX_END
NodeMaterialXFunction materialx_fn
std::string ui_description
NodeGPUExecFunction gpu_fn
const char * enum_name_legacy
NodeDeclareFunction declare