|
Blender V5.3
|
#include "gpu_shader_common_math.bsl.hh"#include "gpu_shader_material_interface.bsl.hh"#include "gpu_shader_math_base.bsl.hh"#include "gpu_shader_math_fast.bsl.hh"#include "gpu_shader_math_vector_safe.bsl.hh"Go to the source code of this file.
Classes | |
| struct | Coat |
| struct | Fuzz |
| struct | Specular |
| struct | Transmission |
| struct | Subsurface |
Functions | |
| float | ior_from_F0 (const float F0) |
| float3 | slab_transmittance_at_angle (const float3 color, const float cos_theta_i, const float ior) |
| float | thin_glass_transmission_roughness (const float roughness, const float ior) |
| float | openpbr_fuzz (const float NV, const float rough) |
| float3 | openpbr_eval_transparency (KernelGlobals &kg, ShadingData &sd, const float3 weight, const float opacity) |
| float3 | openpbr_eval_fuzz (KernelGlobals &, ShadingData &, const float3 weight, const Coat coat, const Fuzz fuzz, const float3 N, const float3 V, ClosureDiffuse &diffuse_data) |
| float3 | openpbr_eval_coat (KernelGlobals &kg, ShadingData &sd, float3 weight, Coat coat, const float3 V) |
| float3 | openpbr_eval_emission (KernelGlobals &kg, ShadingData &sd, const float3 weight, const float3 color, const float luminance) |
| float3 | openpbr_eval_metal (KernelGlobals &kg, const float3 weight, const float3 F0, const Specular specular, const float metalness, const float NV, const bool multiggx, ClosureReflection &reflection_data) |
| float | openpbr_modulate_ior (const float specular_weight, const float specular_ior) |
| float3 | openpbr_eval_translucent (KernelGlobals &kg, ShadingData &sd, const float3 weight, const float transmission, const float3 reflectance, const float3 transmittance, const float3 N, const Specular specular, const bool thin_walled, ClosureReflection &reflection_data) |
| float3 | openpbr_eval_subsurface (KernelGlobals &kg, ShadingData &sd, const float3 weight, const Subsurface subsurface, const bool thin_walled, const float3 N, ClosureDiffuse &diffuse_data) |
| void | openpbr_eval_diffuse (KernelGlobals &kg, ShadingData &sd, const float3 weight, const float3 color, const float3 N, ClosureDiffuse &diffuse_data) |
Definition at line 15 of file gpu_shader_material_open_pbr_util.bsl.hh.
References clamp(), ior_from_F0(), and sqrt.
Referenced by ior_from_F0(), ior_from_F0(), ior_from_F0(), ior_parametrization(), openpbr_modulate_ior(), osl_closure_generalized_schlick_bsdf_setup(), and svm_node_closure_bsdf().
| float3 openpbr_eval_coat | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| float3 | weight, | ||
| Coat | coat, | ||
| const float3 | V ) |
Definition at line 120 of file gpu_shader_material_open_pbr_util.bsl.hh.
References all(), bsdf_lut(), closure_eval(), dot(), equal, Coat::ior, Coat::N, openpbr_eval_coat(), Coat::roughness, saturate, slab_transmittance_at_angle(), Coat::tint, V, and Coat::weight.
Referenced by node_bsdf_principled(), and openpbr_eval_coat().
| void openpbr_eval_diffuse | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| const float3 | weight, | ||
| const float3 | color, | ||
| const float3 | N, | ||
| ClosureDiffuse & | diffuse_data ) |
Definition at line 263 of file gpu_shader_material_open_pbr_util.bsl.hh.
References closure_eval(), N, and openpbr_eval_diffuse().
Referenced by node_bsdf_principled(), and openpbr_eval_diffuse().
| float3 openpbr_eval_emission | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| const float3 | weight, | ||
| const float3 | color, | ||
| const float | luminance ) |
Definition at line 146 of file gpu_shader_material_open_pbr_util.bsl.hh.
References closure_eval(), and openpbr_eval_emission().
Referenced by node_bsdf_principled(), and openpbr_eval_emission().
| float3 openpbr_eval_fuzz | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| const float3 | weight, | ||
| const Coat | coat, | ||
| const Fuzz | fuzz, | ||
| const float3 | N, | ||
| const float3 | V, | ||
| ClosureDiffuse & | diffuse_data ) |
Definition at line 91 of file gpu_shader_material_open_pbr_util.bsl.hh.
References dot(), math_reduce_max(), max, mix, Coat::N, N, openpbr_eval_fuzz(), openpbr_fuzz(), Fuzz::roughness, safe_normalize(), saturate, Fuzz::tint, V, Coat::weight, and Fuzz::weight.
Referenced by node_bsdf_principled(), and openpbr_eval_fuzz().
| float3 openpbr_eval_metal | ( | KernelGlobals & | kg, |
| const float3 | weight, | ||
| const float3 | F0, | ||
| const Specular | specular, | ||
| const float | metalness, | ||
| const float | NV, | ||
| const bool | multiggx, | ||
| ClosureReflection & | reflection_data ) |
Definition at line 158 of file gpu_shader_material_open_pbr_util.bsl.hh.
References brdf_f82_tint_lut(), max, openpbr_eval_metal(), Specular::roughness, saturate, and Specular::tint.
Referenced by node_bsdf_principled(), and openpbr_eval_metal().
| float3 openpbr_eval_subsurface | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| const float3 | weight, | ||
| const Subsurface | subsurface, | ||
| const bool | thin_walled, | ||
| const float3 | N, | ||
| ClosureDiffuse & | diffuse_data ) |
Definition at line 226 of file gpu_shader_material_open_pbr_util.bsl.hh.
References Subsurface::anisotropy, closure_eval(), max, N, openpbr_eval_subsurface(), Subsurface::radius, saturate, Subsurface::tint, and Subsurface::weight.
Referenced by node_bsdf_principled(), and openpbr_eval_subsurface().
| float3 openpbr_eval_translucent | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| const float3 | weight, | ||
| const float | transmission, | ||
| const float3 | reflectance, | ||
| const float3 | transmittance, | ||
| const float3 | N, | ||
| const Specular | specular, | ||
| const bool | thin_walled, | ||
| ClosureReflection & | reflection_data ) |
Definition at line 191 of file gpu_shader_material_open_pbr_util.bsl.hh.
References closure_eval(), Specular::ior, max, N, openpbr_eval_translucent(), Specular::roughness, and thin_glass_transmission_roughness().
Referenced by openpbr_eval_translucent(), and principled_eval_translucent().
| float3 openpbr_eval_transparency | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| const float3 | weight, | ||
| const float | opacity ) |
Definition at line 78 of file gpu_shader_material_open_pbr_util.bsl.hh.
References closure_eval(), and openpbr_eval_transparency().
Referenced by node_bsdf_principled(), and openpbr_eval_transparency().
Definition at line 35 of file gpu_shader_material_open_pbr_util.bsl.hh.
References openpbr_fuzz(), and saturate.
Referenced by openpbr_eval_fuzz(), and openpbr_fuzz().
Definition at line 181 of file gpu_shader_material_open_pbr_util.bsl.hh.
References F0_from_ior(), ior_from_F0(), and openpbr_modulate_ior().
Referenced by openpbr_modulate_ior(), and principled_eval_gloss().
Definition at line 23 of file gpu_shader_material_open_pbr_util.bsl.hh.
References pow, slab_transmittance_at_angle(), sqrt_fast(), and square().
Referenced by openpbr_eval_coat(), principled_eval_translucent(), and slab_transmittance_at_angle().
Definition at line 29 of file gpu_shader_material_open_pbr_util.bsl.hh.
References saturate, sqrt, square(), and thin_glass_transmission_roughness().
Referenced by openpbr_eval_translucent(), and thin_glass_transmission_roughness().