Blender V5.3
sun.h File Reference

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)

Function Documentation

◆ sun_light_eval_from_intersection()

ccl_device LightEval sun_light_eval_from_intersection ( const ccl_global KernelLight * klight,
const float3 ray_D )

◆ sun_light_intersect()

ccl_device bool sun_light_intersect ( const ccl_global KernelLight * klight,
const ccl_private Ray *ccl_restrict ray,
ccl_private float * t )

◆ sun_light_sample()

ccl_device_inline bool sun_light_sample ( const ccl_global KernelLight * klight,
const float2 rand,
ccl_private LightSample * ls )

◆ sun_light_tree_parameters()

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 )

◆ sun_light_uv()