|
Blender V5.3
|
Go to the source code of this file.
| ccl_device void make_orthonormals_safe_tangent | ( | const float3 | N, |
| const float3 | T, | ||
| ccl_private float3 * | a, | ||
| ccl_private float3 * | b ) |
Definition at line 55 of file sample/mapping.h.
References b, ccl_device, ccl_private, cross, len_squared(), make_orthonormals(), make_orthonormals_safe_tangent(), N, safe_normalize(), and T.
Referenced by bsdf_sheen_setup(), and make_orthonormals_safe_tangent().
| ccl_device void make_orthonormals_tangent | ( | const float3 | N, |
| const float3 | T, | ||
| ccl_private float3 * | a, | ||
| ccl_private float3 * | b ) |
Definition at line 46 of file sample/mapping.h.
References b, ccl_device, ccl_private, cross, make_orthonormals_tangent(), N, normalize, and T.
Referenced by bsdf_ashikhmin_shirley_eval(), bsdf_ashikhmin_shirley_sample(), bsdf_microfacet_eval(), bsdf_microfacet_sample(), compute_v(), and make_orthonormals_tangent().
| ccl_device_inline float pdf_cos_hemisphere | ( | const float3 | N, |
| const float3 | D ) |
Definition at line 86 of file sample/mapping.h.
References ccl_device_inline, cos_theta(), D, dot(), M_1_PI_F, N, and pdf_cos_hemisphere().
Referenced by pdf_cos_hemisphere(), sphere_light_pdf(), and spot_light_pdf().
| ccl_device_inline Spectrum pdf_exponential_distribution | ( | const float | x, |
| const Spectrum | lambda, | ||
| const Interval< float > | t ) |
Definition at line 247 of file sample/mapping.h.
References ccl_device_inline, clamp(), exp, Interval< T >::max, Interval< T >::min, pdf_exponential_distribution(), safe_divide(), and x.
Referenced by pdf_exponential_distribution().
| ccl_device_inline float pdf_uniform_cone | ( | const float3 | N, |
| const float3 | D, | ||
| const float | angle ) |
Definition at line 111 of file sample/mapping.h.
References angle(), ccl_device_inline, D, M_1_2PI_F, N, one_minus_cos(), pdf_uniform_cone(), precise_angle(), and z().
Referenced by background_sun_pdf(), and pdf_uniform_cone().
| ccl_device float2 regular_polygon_sample | ( | const float | corners, |
| float | rotation, | ||
| const float2 | rand ) |
Definition at line 188 of file sample/mapping.h.
References angle(), ccl_device, cosf, floorf, M_PI_F, make_float2, regular_polygon_sample(), sinf, sqrtf, float2::x, and float2::y.
Referenced by camera_sample_aperture(), and regular_polygon_sample().
| ccl_device_inline void sample_cos_hemisphere | ( | const float3 | N, |
| const float2 | rand_in, | ||
| ccl_private float3 * | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 71 of file sample/mapping.h.
References B, ccl_device_inline, ccl_private, len_squared(), M_1_PI_F, make_orthonormals(), N, safe_sqrtf(), sample_cos_hemisphere(), sample_uniform_disk(), T, float2::x, and float2::y.
| ccl_device_inline float sample_exponential_distribution | ( | const float | rand, |
| const float | lambda ) |
Definition at line 230 of file sample/mapping.h.
References ccl_device_inline, logf, and sample_exponential_distribution().
Referenced by sample_exponential_distribution(), and sample_exponential_distribution().
| ccl_device_inline float sample_exponential_distribution | ( | const float | rand, |
| const float | lambda, | ||
| const Interval< float > | t ) |
Definition at line 239 of file sample/mapping.h.
References ccl_device_inline, clamp(), expf, logf, Interval< T >::max, Interval< T >::min, and sample_exponential_distribution().
| ccl_device_inline int sample_geometric_distribution | ( | const float | rand, |
| const float | r, | ||
| ccl_private float & | pmf, | ||
| const int | cut_off = INT_MAX ) |
Definition at line 218 of file sample/mapping.h.
References ccl_device_inline, ccl_private, floorf, INT_MAX, logf, min, powf, and sample_geometric_distribution().
Referenced by sample_geometric_distribution().
| ccl_device_inline float3 sample_uniform_cone | ( | const float3 | N, |
| const float | one_minus_cos_angle, | ||
| const float2 | rand, | ||
| ccl_private float * | cos_theta, | ||
| ccl_private float * | pdf ) |
Definition at line 125 of file sample/mapping.h.
References B, ccl_device_inline, ccl_private, cos_theta(), len_squared(), M_1_2PI_F, make_orthonormals(), N, safe_sqrtf(), sample_uniform_cone(), sample_uniform_disk(), T, float2::x, and float2::y.
| CCL_NAMESPACE_BEGIN ccl_device float2 sample_uniform_disk | ( | const float2 | rand | ) |
Definition at line 21 of file sample/mapping.h.
References b, ccl_device, M_PI_2_F, M_PI_4_F, polar_to_cartesian(), sample_uniform_disk(), float2::x, float2::y, and zero_float2().
Referenced by bsdf_sheen_sample(), camera_sample_aperture(), ellipse_sample(), microfacet_ggx_sample_vndf(), sample_cos_hemisphere(), sample_uniform_cone(), sample_uniform_disk(), and sample_uniform_hemisphere().
| ccl_device_inline void sample_uniform_hemisphere | ( | const float3 | N, |
| const float2 | rand, | ||
| ccl_private float3 * | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 93 of file sample/mapping.h.
References B, ccl_device_inline, ccl_private, len_squared(), M_1_2PI_F, make_orthonormals(), N, safe_sqrtf(), sample_uniform_disk(), sample_uniform_hemisphere(), T, float2::x, float2::y, and z().
Referenced by bsdf_ashikhmin_velvet_sample(), and sample_uniform_hemisphere().
| ccl_device float3 sample_uniform_sphere | ( | const float2 | rand | ) |
Definition at line 178 of file sample/mapping.h.
References ccl_device, M_2PI_F, make_float3(), polar_to_cartesian(), sample_uniform_sphere(), sin_from_cos(), float2::x, float2::y, and z().
Referenced by background_light_sample(), point_light_sample(), sample_uniform_sphere(), and spot_light_sample().