|
Blender
V2.93
|
Go to the source code of this file.
| ccl_device float balance_heuristic | ( | float | a, |
| float | b | ||
| ) |
Definition at line 123 of file kernel_montecarlo.h.
References Freestyle::a.
| ccl_device float balance_heuristic_3 | ( | float | a, |
| float | b, | ||
| float | c | ||
| ) |
Definition at line 128 of file kernel_montecarlo.h.
References Freestyle::a, and Freestyle::c.
| ccl_device float2 concentric_sample_disk | ( | float | u1, |
| float | u2 | ||
| ) |
Definition at line 150 of file kernel_montecarlo.h.
References Freestyle::a, cosf, M_PI_2_F, M_PI_4_F, make_float2, r, sinf, u1, u2, and zero_float2().
Referenced by camera_sample_aperture().
| ccl_device float3 ensure_valid_reflection | ( | float3 | Ng, |
| float3 | I, | ||
| float3 | N | ||
| ) |
Definition at line 196 of file kernel_montecarlo.h.
References Freestyle::a, Freestyle::c, dot(), I, make_float2, min, N, normalize(), R, safe_sqrtf(), sqr(), float2::x, X, and float2::y.
Referenced by svm_node_normal_map(), and svm_node_set_bump().
| ccl_device void make_orthonormals_tangent | ( | const float3 | N, |
| const float3 | T, | ||
| float3 * | a, | ||
| float3 * | b | ||
| ) |
Definition at line 50 of file kernel_montecarlo.h.
References Freestyle::a, cross(), N, normalize(), and T.
Referenced by bsdf_ashikhmin_shirley_eval_reflect(), bsdf_ashikhmin_shirley_sample(), bsdf_microfacet_beckmann_eval_reflect(), bsdf_microfacet_beckmann_sample(), bsdf_microfacet_ggx_eval_reflect(), bsdf_microfacet_ggx_sample(), bsdf_microfacet_multi_ggx_eval_reflect(), and bsdf_microfacet_multi_ggx_sample().
| ccl_device float max_heuristic | ( | float | a, |
| float | b | ||
| ) |
Definition at line 143 of file kernel_montecarlo.h.
References Freestyle::a.
| ccl_device_inline float pdf_uniform_cone | ( | const float3 | N, |
| float3 | D, | ||
| float | angle | ||
| ) |
| ccl_device float power_heuristic | ( | float | a, |
| float | b | ||
| ) |
Definition at line 133 of file kernel_montecarlo.h.
References Freestyle::a.
Referenced by direct_emission(), indirect_background(), indirect_lamp_emission(), indirect_primitive_emission(), and shader_bsdf_eval().
| ccl_device float power_heuristic_3 | ( | float | a, |
| float | b, | ||
| float | c | ||
| ) |
Definition at line 138 of file kernel_montecarlo.h.
References Freestyle::a, and Freestyle::c.
Definition at line 172 of file kernel_montecarlo.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, |
| float | randu, | ||
| float | randv, | ||
| float3 * | omega_in, | ||
| float * | |||
| ) |
Definition at line 57 of file kernel_montecarlo.h.
References B, M_1_PI_F, make_orthonormals(), max, N, sqrtf, T, and to_unit_disk().
Referenced by bsdf_diffuse_sample(), bsdf_principled_diffuse_sample(), bsdf_principled_sheen_sample(), bsdf_translucent_sample(), kernel_path_ao(), and subsurface_random_walk().
| ccl_device_inline void sample_uniform_cone | ( | const float3 | N, |
| float | angle, | ||
| float | randu, | ||
| float | randv, | ||
| float3 * | omega_in, | ||
| float * | |||
| ) |
Definition at line 85 of file kernel_montecarlo.h.
References angle(), B, cosf, M_1_2PI_F, M_2PI_F, make_orthonormals(), N, r, safe_sqrtf(), sinf, sqr(), T, x, y, and z.
Referenced by bsdf_diffuse_toon_sample(), and bsdf_glossy_toon_sample().
| ccl_device_inline void sample_uniform_hemisphere | ( | const float3 | N, |
| float | randu, | ||
| float | randv, | ||
| float3 * | omega_in, | ||
| float * | |||
| ) |
Definition at line 69 of file kernel_montecarlo.h.
References B, cosf, M_1_PI_F, M_2PI_F, make_orthonormals(), max, N, r, sinf, sqrtf, T, x, y, and z.
Referenced by bsdf_ashikhmin_velvet_sample(), and bsdf_oren_nayar_sample().
| ccl_device float3 sample_uniform_sphere | ( | float | u1, |
| float | u2 | ||
| ) |
| CCL_NAMESPACE_BEGIN ccl_device void to_unit_disk | ( | float * | x, |
| float * | y | ||
| ) |
Definition at line 39 of file kernel_montecarlo.h.
References cosf, M_2PI_F, r, sinf, sqrtf, x, and y.
Referenced by ellipse_sample(), and sample_cos_hemisphere().