Blender V5.3
spot.h File Reference

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN ccl_device float3 spot_light_to_local (KernelGlobals kg, const ccl_global KernelLight *klight, const float3 ray)
ccl_device float spot_light_attenuation (const ccl_global KernelSpotLight *spot, const float3 ray)
ccl_device float2 spot_light_uv (const float3 ray, const float half_cot_half_spot_angle)
template<bool in_volume_segment>
ccl_device_inline bool spot_light_sample (KernelGlobals kg, const ccl_global KernelLight *klight, const float2 rand, const float3 P, const float3 N, const int runtime_flags, ccl_private LightSample *ls)
ccl_device_forceinline float spot_light_pdf (const ccl_global KernelSpotLight *spot, const float d_sq, const float r_sq, const float3 N, const float3 D, const uint32_t path_flag)
ccl_device_forceinline void spot_light_mnee_sample_update (KernelGlobals kg, const ccl_global KernelLight *klight, ccl_private LightSample *ls, const float3 P, const float3 N, const uint32_t path_flag)
ccl_device_inline bool spot_light_intersect (const ccl_global KernelLight *klight, const ccl_private Ray *ccl_restrict ray, ccl_private float *t)
ccl_device_inline LightEval spot_light_eval_from_intersection (KernelGlobals kg, const ccl_global KernelLight *klight, const float3 ray_P, const float3 ray_D, const float t, const float3 N, const uint32_t path_flag)
ccl_device_inline bool spot_light_valid_ray_segment (KernelGlobals kg, const ccl_global KernelLight *klight, const float3 P, const float3 D, ccl_private Interval< float > *t_range)
template<bool in_volume_segment>
ccl_device_forceinline bool spot_light_tree_parameters (const ccl_global KernelLight *klight, const float3 centroid, const float3 P, const ccl_private KernelBoundingCone &bcone, ccl_private float &cos_theta_u, ccl_private float2 &distance, ccl_private float3 &point_to_centroid, ccl_private float &energy)

Function Documentation

◆ spot_light_attenuation()

◆ spot_light_eval_from_intersection()

◆ spot_light_intersect()

◆ spot_light_mnee_sample_update()

◆ spot_light_pdf()

◆ spot_light_sample()

◆ spot_light_to_local()

◆ spot_light_tree_parameters()

template<bool in_volume_segment>
ccl_device_forceinline bool spot_light_tree_parameters ( const ccl_global KernelLight * klight,
const float3 centroid,
const float3 P,
const ccl_private KernelBoundingCone & bcone,
ccl_private float & cos_theta_u,
ccl_private float2 & distance,
ccl_private float3 & point_to_centroid,
ccl_private float & energy )

◆ spot_light_uv()

ccl_device float2 spot_light_uv ( const float3 ray,
const float half_cot_half_spot_angle )

Definition at line 33 of file spot.h.

References ccl_device, make_float2, spot_light_uv(), float3::x, float3::y, and float3::z.

Referenced by light_normal_uv_from_position(), and spot_light_uv().

◆ spot_light_valid_ray_segment()