|
Blender V4.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 46 of file sample/mapping.h.
References b, cross(), len_squared(), make_orthonormals(), N, and safe_normalize().
Referenced by bsdf_sheen_setup().
| ccl_device void make_orthonormals_tangent | ( | const float3 | N, |
| const float3 | T, | ||
| ccl_private float3 * | a, | ||
| ccl_private float3 * | b ) |
Definition at line 37 of file sample/mapping.h.
References b, cross(), N, and normalize().
Referenced by bsdf_ashikhmin_shirley_eval(), bsdf_ashikhmin_shirley_sample(), bsdf_microfacet_eval(), bsdf_microfacet_sample(), and compute_v().
| ccl_device_inline float pdf_cos_hemisphere | ( | const float3 | N, |
| const float3 | D ) |
Definition at line 76 of file sample/mapping.h.
References cos_theta(), dot(), and N.
Referenced by sphere_light_pdf(), and spot_light_pdf().
| ccl_device_inline float pdf_uniform_cone | ( | const float3 | N, |
| float3 | D, | ||
| float | angle ) |
Definition at line 100 of file sample/mapping.h.
References N, one_minus_cos(), precise_angle(), and z().
Referenced by background_sun_pdf().
| ccl_device float2 regular_polygon_sample | ( | float | corners, |
| float | rotation, | ||
| const float2 | rand ) |
Definition at line 178 of file sample/mapping.h.
References angle(), cosf, floorf, M_PI_F, make_float2(), sinf, sqrtf, v, float2::x, and float2::y.
Referenced by camera_sample_aperture().
| ccl_device_inline void sample_cos_hemisphere | ( | const float3 | N, |
| float2 | rand_in, | ||
| ccl_private float3 * | wo, | ||
| ccl_private float * | pdf ) |
Definition at line 62 of file sample/mapping.h.
References B, len_squared(), make_orthonormals(), N, safe_sqrtf(), sample_uniform_disk(), T, float2::x, and float2::y.
Referenced by bsdf_diffuse_sample(), bsdf_oren_nayar_sample(), bsdf_translucent_sample(), point_light_sample(), and spot_light_sample().
| 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 114 of file sample/mapping.h.
References B, cos_theta(), len_squared(), make_orthonormals(), N, safe_sqrtf(), sample_uniform_disk(), T, and xy.
Referenced by background_sun_sample(), bsdf_diffuse_toon_sample(), bsdf_glossy_toon_sample(), distant_light_sample(), point_light_sample(), and spot_light_sample().
| CCL_NAMESPACE_BEGIN ccl_device float2 sample_uniform_disk | ( | const float2 | rand | ) |
Definition at line 14 of file sample/mapping.h.
References b, cosf, M_PI_2_F, make_float2(), sinf, 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(), 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 83 of file sample/mapping.h.
References B, len_squared(), make_orthonormals(), N, safe_sqrtf(), sample_uniform_disk(), T, xy, and z().
Referenced by bsdf_ashikhmin_velvet_sample().
| ccl_device float3 sample_uniform_sphere | ( | const float2 | rand | ) |
Definition at line 166 of file sample/mapping.h.
References cosf, M_2PI_F, make_float3(), sin_from_cos(), sinf, float2::x, float2::y, and z().
Referenced by background_light_sample(), point_light_sample(), and spot_light_sample().