|
Blender V4.3
|
Go to the source code of this file.
| ccl_device float phase_draine | ( | float | cos_theta, |
| float | g, | ||
| float | alpha ) |
Definition at line 78 of file volume_util.h.
References cos_theta(), fabsf, phase_henyey_greenstein(), phase_rayleigh(), sqr(), and sqrtf.
Referenced by phase_draine_sample(), and volume_draine_eval().
| ccl_device float3 phase_draine_sample | ( | float3 | D, |
| float | g, | ||
| float | alpha, | ||
| float2 | rand, | ||
| ccl_private float * | pdf ) |
Definition at line 124 of file volume_util.h.
References cos_theta(), fabsf, phase_draine(), phase_draine_sample_cos(), phase_henyey_greenstein_sample(), phase_rayleigh_sample(), phase_sample_direction(), float2::x, and float2::y.
Referenced by volume_draine_sample().
| ccl_device float phase_draine_sample_cos | ( | float | g, |
| float | alpha, | ||
| float | rand ) |
| ccl_device float phase_fournier_forand | ( | float | cos_theta, |
| float3 | coeffs ) |
Definition at line 179 of file volume_util.h.
References cos_theta(), fabsf, M_PI_F, phase_fournier_forand_delta(), phase_fournier_forand_impl(), powf, v, float3::x, float3::y, and float3::z.
Referenced by phase_fournier_forand_sample(), and volume_fournier_forand_eval().
| ccl_device_inline float3 phase_fournier_forand_coeffs | ( | float | B, |
| float | IOR ) |
Definition at line 146 of file volume_util.h.
References B, logf, make_float3(), phase_fournier_forand_delta(), powf, and v.
Referenced by volume_fournier_forand_setup().
| ccl_device float phase_fournier_forand_delta | ( | float | n, |
| float | sin_htheta_sqr ) |
Definition at line 140 of file volume_util.h.
References sqr().
Referenced by phase_fournier_forand(), phase_fournier_forand_coeffs(), and phase_fournier_forand_newton().
| ccl_device_inline float phase_fournier_forand_impl | ( | float | cos_theta, |
| float | delta, | ||
| float | pow_delta_v, | ||
| float | v, | ||
| float | sin_htheta_sqr, | ||
| float | pf_coeff ) |
Definition at line 159 of file volume_util.h.
References cos_theta(), fabsf, m_delta, M_PI_F, pf, sqr(), and v.
Referenced by phase_fournier_forand(), and phase_fournier_forand_newton().
| ccl_device float phase_fournier_forand_newton | ( | float | rand, |
| float3 | coeffs ) |
Definition at line 193 of file volume_util.h.
References cos_theta(), fabsf, m_delta, M_PI_F, max, mix, pf, phase_fournier_forand_delta(), phase_fournier_forand_impl(), powf, sqr(), v, float3::x, float3::y, and float3::z.
Referenced by phase_fournier_forand_sample().
| ccl_device float3 phase_fournier_forand_sample | ( | float3 | D, |
| float3 | coeffs, | ||
| float2 | rand, | ||
| ccl_private float * | pdf ) |
Definition at line 235 of file volume_util.h.
References cos_theta(), phase_fournier_forand(), phase_fournier_forand_newton(), phase_sample_direction(), float2::x, and float2::y.
Referenced by volume_fournier_forand_sample().
| ccl_device float phase_henyey_greenstein | ( | float | cos_theta, |
| float | g ) |
Definition at line 26 of file volume_util.h.
References cos_theta(), fabsf, safe_sqrtf(), and sqr().
Referenced by phase_draine(), phase_henyey_greenstein_sample(), and volume_henyey_greenstein_eval().
| ccl_device float3 phase_henyey_greenstein_sample | ( | float3 | D, |
| float | g, | ||
| float2 | rand, | ||
| ccl_private float * | pdf ) |
Definition at line 35 of file volume_util.h.
References cos_theta(), fabsf, phase_henyey_greenstein(), phase_sample_direction(), sqr(), float2::x, and float2::y.
Referenced by phase_draine_sample(), and volume_henyey_greenstein_sample().
| ccl_device float phase_rayleigh | ( | float | cos_theta | ) |
Definition at line 54 of file volume_util.h.
References cos_theta(), and sqr().
Referenced by phase_draine(), phase_rayleigh_sample(), and volume_rayleigh_eval().
| ccl_device float3 phase_rayleigh_sample | ( | float3 | D, |
| float2 | rand, | ||
| ccl_private float * | pdf ) |
Definition at line 59 of file volume_util.h.
References cos_theta(), fast_inv_cbrtf(), phase_rayleigh(), phase_sample_direction(), sqr(), sqrtf, float2::x, and float2::y.
Referenced by phase_draine_sample(), and volume_rayleigh_sample().
| CCL_NAMESPACE_BEGIN ccl_device float3 phase_sample_direction | ( | float3 | D, |
| float | cos_theta, | ||
| float | rand ) |
Definition at line 10 of file volume_util.h.
References B, cos_theta(), cosf, D, M_2PI_F, make_float3(), make_orthonormals(), sin_from_cos(), sin_theta(), sinf, T, float3::x, float3::y, and float3::z.
Referenced by phase_draine_sample(), phase_fournier_forand_sample(), phase_henyey_greenstein_sample(), and phase_rayleigh_sample().