Blender V5.3
bsdf_principled_hair_huang.h File Reference

Go to the source code of this file.

Classes

struct  HuangHairExtra
struct  HuangHairBSDF

Functions

ccl_device_forceinline float bsdf_hair_huang_energy_scale (KernelGlobals kg, const float mu, const float rough, const float ior)
ccl_device_inline float3 sample_wh (const float roughness, const float3 wi, const float3 wm, const float2 rand)
ccl_device_inline bool microfacet_visible (const float3 v, const float3 m, const float3 h)
ccl_device_inline bool microfacet_visible (const float3 wi, const float3 wo, const float3 m, const float3 h)
ccl_device_inline float bsdf_Go (const float alpha2, const float cos_NI, const float cos_NO)
ccl_device Spectrum bsdf_hair_huang_eval_r (KernelGlobals kg, const ccl_private ShaderClosure *sc, const float3 wi, const float3 wo)
ccl_device Spectrum bsdf_hair_huang_eval_trrt (const float T, const float R, const Spectrum A)
ccl_device Spectrum bsdf_hair_huang_eval_residual (KernelGlobals kg, const ccl_private ShaderClosure *sc, const float3 wi, const float3 wo, ccl_private uint *rng_quadrature)
ccl_device int bsdf_hair_huang_sample (const KernelGlobals kg, const ccl_private ShaderClosure *sc, ccl_private ShaderData *sd, const float3 rand, ccl_private Spectrum *eval, ccl_private float3 *wo, ccl_private float *pdf, ccl_private float2 *sampled_roughness)
ccl_device Spectrum bsdf_hair_huang_eval (KernelGlobals kg, ccl_private ShaderData *sd, const ccl_private ShaderClosure *sc, const float3 wo, ccl_private float *pdf)
ccl_device void bsdf_hair_huang_blur (ccl_private ShaderClosure *sc, const float roughness)
ccl_device Spectrum bsdf_hair_huang_albedo (const ccl_private ShaderData *, const ccl_private ShaderClosure *sc)
Hair coordinate system utils.
ccl_device_inline float sin_theta (const float3 w)
ccl_device_inline float cos_theta (const float3 w)
ccl_device_inline float tan_theta (const float3 w)
ccl_device float sin_phi (const float3 w)
ccl_device_inline bool is_circular (const float b)
ccl_device float2 sincos_phi (const float3 w)
ccl_device_inline float dir_theta (const float3 w)
ccl_device_inline float dir_phi (const float3 w)
ccl_device_inline float2 dir_sph (const float3 w)
ccl_device_inline float to_phi (const float gamma, const float b)
ccl_device_inline float to_gamma (const float phi, const float b)
ccl_device_inline float phi_to_h (const float phi, const float b, const float3 wi)
ccl_device_inline float h_to_gamma (const float h_div_r, const float b, const float3 wi)
ccl_device_inline float d_gamma_d_h (const float2 sincos_phi_i, const float gamma, const float b)
ccl_device_inline float2 to_point (const float gamma, const float b)
ccl_device_inline float3 sphg_dir (const float theta, const float gamma, const float b)
ccl_device_inline float arc_length (const float e2, const float gamma)
ccl_device_inline bool is_nearfield (const ccl_private HuangHairBSDF *bsdf)

Function Documentation

◆ arc_length()

◆ bsdf_Go()

ccl_device_inline float bsdf_Go ( const float alpha2,
const float cos_NI,
const float cos_NO )

◆ bsdf_hair_huang_albedo()

ccl_device Spectrum bsdf_hair_huang_albedo ( const ccl_private ShaderData * ,
const ccl_private ShaderClosure * sc )

◆ bsdf_hair_huang_blur()

ccl_device void bsdf_hair_huang_blur ( ccl_private ShaderClosure * sc,
const float roughness )

◆ bsdf_hair_huang_energy_scale()

◆ bsdf_hair_huang_eval()

◆ bsdf_hair_huang_eval_r()

◆ bsdf_hair_huang_eval_residual()

◆ bsdf_hair_huang_eval_trrt()

ccl_device Spectrum bsdf_hair_huang_eval_trrt ( const float T,
const float R,
const Spectrum A )

◆ bsdf_hair_huang_sample()

◆ cos_theta()

ccl_device_inline float cos_theta ( const float3 w)

Definition at line 86 of file bsdf_principled_hair_huang.h.

References ccl_device_inline, cos_theta(), safe_sqrtf(), sqr, and w().

Referenced by aerosol_phase_function(), brdf_f82_tint_lut(), brdf_lut(), bsdf_ashikhmin_shirley_sample(), bsdf_ashikhmin_shirley_sample_first_quadrant(), bsdf_hair_huang_eval(), bsdf_hair_huang_eval_residual(), bsdf_hair_huang_sample(), bsdf_lut(), bsdf_lut(), bxdf_ggx_light_reflection(), bxdf_ggx_light_thin_glass_transmission(), bxdf_ggx_light_transmission(), bxdf_ggx_sample_reflection(), bxdf_ggx_sample_vndf(), bxdf_translucent_sample(), cos_theta(), dir_theta(), F_eta(), from_incident_vector(), SkyMultipleScattering::get_inscattering(), eevee::detail::get_isotropic_coords(), SkyMultipleScattering::get_transmittance(), eevee::lightprobe::volume::grid_bias_sample_coord(), workbench::prepass::hair_random_normal(), eevee::init_globals_curves(), light_tree_importance(), SkyMultipleScattering::lookup_multiscattering(), SkyMultipleScattering::lookup_transmittance(), SkyMultipleScattering::lookup_transmittance_at_ground(), eevee::lut::GGXBrdfData::lut_coords_get(), eevee::lut::GGXBsdfData::lut_coords_get(), eevee::lut::GGXBtdfGt1Data::lut_coords_get(), mnee_compute_transfer_matrix(), mnee_setup_manifold_vertex(), molecular_phase_function(), eevee::LTCData::pack_ltc_lut(), pdf_cos_hemisphere(), phase_draine(), phase_draine_sample(), phase_fournier_forand(), phase_fournier_forand_impl(), phase_fournier_forand_newton(), phase_fournier_forand_sample(), phase_henyey_greenstein(), phase_henyey_greenstein_sample(), phase_rayleigh(), phase_rayleigh_sample(), phase_sample_direction(), point_light_sample(), sample_cos_hemisphere(), sample_cos_hemisphere(), blender::eevee::Sampling::sample_hemisphere(), sample_hemisphere(), eevee::LTCData::sample_ltc_lut(), blender::eevee::Sampling::sample_sphere(), sample_sphere(), sample_uniform_cone(), sample_uniform_cone(), eevee::lut::GGXBrdfData::sample_utility_tx(), eevee::lut::GGXBsdfData::sample_utility_tx(), eevee::lut::GGXBtdfGt1Data::sample_utility_tx(), eevee::shadow_normal_offset(), eevee::shadow_pcf_offset(), eevee::shadow_terminator_offset(), sin_phi(), sincos_phi(), spherical_cos_to_direction(), sphg_dir(), spot_light_sample(), tan_theta(), overlay::unpack_line_data(), volume_draine_eval(), volume_fournier_forand_eval(), volume_henyey_greenstein_eval(), volume_phase_function(), and volume_rayleigh_eval().

◆ d_gamma_d_h()

◆ dir_phi()

◆ dir_sph()

ccl_device_inline float2 dir_sph ( const float3 w)

Definition at line 131 of file bsdf_principled_hair_huang.h.

References ccl_device_inline, dir_phi(), dir_sph(), dir_theta(), make_float2, and w().

Referenced by dir_sph().

◆ dir_theta()

ccl_device_inline float dir_theta ( const float3 w)

Definition at line 117 of file bsdf_principled_hair_huang.h.

References atan2f, ccl_device_inline, cos_theta(), dir_theta(), sin_theta(), and w().

Referenced by dir_sph(), and dir_theta().

◆ h_to_gamma()

◆ is_circular()

◆ is_nearfield()

◆ microfacet_visible() [1/2]

◆ microfacet_visible() [2/2]

ccl_device_inline bool microfacet_visible ( const float3 wi,
const float3 wo,
const float3 m,
const float3 h )

Definition at line 353 of file bsdf_principled_hair_huang.h.

References ccl_device_inline, and microfacet_visible().

◆ phi_to_h()

◆ sample_wh()

◆ sin_phi()

◆ sin_theta()

◆ sincos_phi()

◆ sphg_dir()

◆ tan_theta()

ccl_device_inline float tan_theta ( const float3 w)

Definition at line 92 of file bsdf_principled_hair_huang.h.

References ccl_device_inline, cos_theta(), sin_theta(), tan_theta(), and w().

Referenced by bsdf_hair_huang_eval(), and tan_theta().

◆ to_gamma()

ccl_device_inline float to_gamma ( const float phi,
const float b )

Definition at line 148 of file bsdf_principled_hair_huang.h.

References atan2f, b, ccl_device_inline, fast_sincosf(), is_circular(), sin_phi(), and to_gamma().

Referenced by phi_to_h(), and to_gamma().

◆ to_phi()

◆ to_point()