Blender V4.3
common.h File Reference

Go to the source code of this file.

Classes

struct  LightSample
 

Typedefs

typedef CCL_NAMESPACE_BEGIN struct LightSample LightSample
 

Functions

ccl_device_inline float3 ellipse_sample (float3 ru, float3 rv, float2 rand)
 
ccl_device_inline float3 rectangle_sample (float3 ru, float3 rv, float2 rand)
 
ccl_device float3 disk_light_sample (float3 n, float2 rand)
 
ccl_device float light_pdf_area_to_solid_angle (const float3 Ng, const float3 I, float t)
 
ccl_device_inline bool is_light_shader_visible_to_path (const int shader, const uint32_t path_flag)
 

Typedef Documentation

◆ LightSample

typedef CCL_NAMESPACE_BEGIN struct LightSample LightSample

Function Documentation

◆ disk_light_sample()

ccl_device float3 disk_light_sample ( float3 n,
float2 rand )

Definition at line 44 of file light/common.h.

References ellipse_sample(), and make_orthonormals().

Referenced by point_light_sample(), and spot_light_sample().

◆ ellipse_sample()

ccl_device_inline float3 ellipse_sample ( float3 ru,
float3 rv,
float2 rand )

◆ is_light_shader_visible_to_path()

◆ light_pdf_area_to_solid_angle()

◆ rectangle_sample()

ccl_device_inline float3 rectangle_sample ( float3 ru,
float3 rv,
float2 rand )

Definition at line 39 of file light/common.h.

References float2::x, and float2::y.

Referenced by area_light_eval().