Blender V5.0
background.h File Reference

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN ccl_device float3 background_map_sample (KernelGlobals kg, const float2 rand, ccl_private float *pdf)
ccl_device float background_map_pdf (KernelGlobals kg, const float3 direction)
ccl_device_inline bool background_portal_data_fetch_and_check_side (KernelGlobals kg, const float3 P, const int index, ccl_private float3 *lightpos, ccl_private float3 *dir)
ccl_device_inline float background_portal_pdf (KernelGlobals kg, const float3 P, float3 direction, const int ignore_portal, ccl_private bool *is_possible)
ccl_device int background_num_possible_portals (KernelGlobals kg, const float3 P)
ccl_device float3 background_portal_sample (KernelGlobals kg, const float3 P, float2 rand, const int num_possible, ccl_private int *sampled_portal, ccl_private float *pdf)
ccl_device_inline float3 background_sun_sample (KernelGlobals kg, const float2 rand, ccl_private float *pdf)
ccl_device_inline float background_sun_pdf (KernelGlobals kg, const float3 D)
ccl_device_inline float3 background_light_sample (KernelGlobals kg, const float3 P, float2 rand, ccl_private float *pdf)
ccl_device float background_light_pdf (KernelGlobals kg, const float3 P, float3 direction)
template<bool in_volume_segment>
ccl_device_forceinline bool background_light_tree_parameters (const float3 centroid, 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

◆ background_light_pdf()

◆ background_light_sample()

◆ background_light_tree_parameters()

template<bool in_volume_segment>
ccl_device_forceinline bool background_light_tree_parameters ( const float3 centroid,
const float t,
ccl_private float & cos_theta_u,
ccl_private float2 & distance,
ccl_private float3 & point_to_centroid,
ccl_private float & theta_d )

◆ background_map_pdf()

◆ background_map_sample()

◆ background_num_possible_portals()

ccl_device int background_num_possible_portals ( KernelGlobals kg,
const float3 P )

◆ background_portal_data_fetch_and_check_side()

ccl_device_inline bool background_portal_data_fetch_and_check_side ( KernelGlobals kg,
const float3 P,
const int index,
ccl_private float3 * lightpos,
ccl_private float3 * dir )

◆ background_portal_pdf()

◆ background_portal_sample()

◆ background_sun_pdf()

◆ background_sun_sample()