|
Blender
V2.93
|
Go to the source code of this file.
Functions | |
| CCL_NAMESPACE_BEGIN ccl_device float | fresnel_dielectric (float eta, const float3 N, const float3 I, float3 *R, float3 *T, bool *is_inside) |
| ccl_device float | fresnel_dielectric_cos (float cosi, float eta) |
| ccl_device float3 | fresnel_conductor (float cosi, const float3 eta, const float3 k) |
| ccl_device float | schlick_fresnel (float u) |
| ccl_device_forceinline float3 | interpolate_fresnel_color (float3 L, float3 H, float ior, float F0, float3 cspec0) |
| ccl_device float3 fresnel_conductor | ( | float | cosi, |
| const float3 | eta, | ||
| const float3 | k | ||
| ) |
Definition at line 119 of file bsdf_util.h.
References make_float3.
| CCL_NAMESPACE_BEGIN ccl_device float fresnel_dielectric | ( | float | eta, |
| const float3 | N, | ||
| const float3 | I, | ||
| float3 * | R, | ||
| float3 * | T, | ||
| bool * | is_inside | ||
| ) |
Definition at line 38 of file bsdf_util.h.
References KDL::cos(), dot(), I, is_inside(), make_float3, max, N, R, sqrtf, and T.
Referenced by bsdf_microfacet_beckmann_sample(), bsdf_microfacet_ggx_sample(), bsdf_microfacet_multi_ggx_glass_sample(), and bsdf_refraction_sample().
| ccl_device float fresnel_dielectric_cos | ( | float | cosi, |
| float | eta | ||
| ) |
Definition at line 104 of file bsdf_util.h.
References A, B, Freestyle::c, fabsf, and sqrtf.
Referenced by bsdf_microfacet_fresnel_color(), bsdf_principled_hair_eval(), bsdf_principled_hair_sample(), interpolate_fresnel_color(), mf_eval(), mf_eval_phase_glass(), mf_glass_pdf(), mf_sample(), mf_sample_phase_glass(), reflection_color(), svm_node_closure_bsdf(), svm_node_fresnel(), and svm_node_layer_weight().
| ccl_device_forceinline float3 interpolate_fresnel_color | ( | float3 | L, |
| float3 | H, | ||
| float | ior, | ||
| float | F0, | ||
| float3 | cspec0 | ||
| ) |
Definition at line 139 of file bsdf_util.h.
References dot(), FH, fresnel_dielectric_cos(), H, L, and make_float3.
Referenced by bsdf_microfacet_fresnel_color(), mf_eval(), mf_sample(), and reflection_color().
| ccl_device float schlick_fresnel | ( | float | u | ) |
Definition at line 130 of file bsdf_util.h.
References clamp().
Referenced by calculate_avg_principled_sheen_brdf(), calculate_principled_diffuse_brdf(), and calculate_principled_sheen_brdf().