|
Blender V5.3
|
Go to the source code of this file.
Functions | |
| CCL_NAMESPACE_BEGIN ccl_device_inline float2 | sun_light_uv (KernelGlobals kg, const ccl_global KernelLight *klight, const float3 D) |
| ccl_device_inline bool | sun_light_sample (const ccl_global KernelLight *klight, const float2 rand, ccl_private LightSample *ls) |
| ccl_device bool | sun_light_intersect (const ccl_global KernelLight *klight, const ccl_private Ray *ccl_restrict ray, ccl_private float *t) |
| ccl_device LightEval | sun_light_eval_from_intersection (const ccl_global KernelLight *klight, const float3 ray_D) |
| template<bool in_volume_segment> | |
| ccl_device_forceinline bool | sun_light_tree_parameters (const float3 centroid, const float theta_e, const float t, ccl_private float &cos_theta_u, ccl_private float2 &distance, ccl_private float3 &point_to_centroid, ccl_private float &theta_d) |
| ccl_device LightEval sun_light_eval_from_intersection | ( | const ccl_global KernelLight * | klight, |
| const float3 | ray_D ) |
Definition at line 76 of file sun.h.
References ccl_device, ccl_global, sun_light_eval_from_intersection(), and vector_angle().
Referenced by integrate_sun_lights(), and sun_light_eval_from_intersection().
| ccl_device bool sun_light_intersect | ( | const ccl_global KernelLight * | klight, |
| const ccl_private Ray *ccl_restrict | ray, | ||
| ccl_private float * | t ) |
Definition at line 57 of file sun.h.
References ccl_device, ccl_global, ccl_private, ccl_restrict, FLT_MAX, kernel_assert, LIGHT_SUN, sun_light_intersect(), and vector_angle().
Referenced by lights_intersect_impl(), and sun_light_intersect().
| ccl_device_inline bool sun_light_sample | ( | const ccl_global KernelLight * | klight, |
| const float2 | rand, | ||
| ccl_private LightSample * | ls ) |
Definition at line 34 of file sun.h.
References ccl_device_inline, ccl_global, ccl_private, FLT_MAX, sample_uniform_cone(), and sun_light_sample().
Referenced by light_sample(), and sun_light_sample().
| ccl_device_forceinline bool sun_light_tree_parameters | ( | const float3 | centroid, |
| const float | theta_e, | ||
| const float | t, | ||
| ccl_private float & | cos_theta_u, | ||
| ccl_private float2 & | distance, | ||
| ccl_private float3 & | point_to_centroid, | ||
| ccl_private float & | theta_d ) |
Definition at line 91 of file sun.h.
References ccl_device_forceinline, ccl_private, distance(), fast_cosf(), FLT_MAX, make_float2, and sun_light_tree_parameters().
Referenced by light_tree_emitter_importance(), and sun_light_tree_parameters().
| CCL_NAMESPACE_BEGIN ccl_device_inline float2 sun_light_uv | ( | KernelGlobals | kg, |
| const ccl_global KernelLight * | klight, | ||
| const float3 | D ) |
Definition at line 15 of file sun.h.
References ccl_device_inline, ccl_global, D, dot(), lamp_get_inverse_transform(), len(), make_float2, make_float3(), sun_light_uv(), Transform::x, and Transform::y.
Referenced by light_normal_uv_from_position(), and sun_light_uv().