|
Blender V4.3
|
#include "kernel/sample/mapping.h"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 CCL_NAMESPACE_BEGIN struct LightSample LightSample |
| 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().
| ccl_device_inline float3 ellipse_sample | ( | float3 | ru, |
| float3 | rv, | ||
| float2 | rand ) |
Definition at line 33 of file light/common.h.
References sample_uniform_disk(), float2::x, and float2::y.
Referenced by area_light_eval(), background_portal_sample(), and disk_light_sample().
| ccl_device_inline bool is_light_shader_visible_to_path | ( | const int | shader, |
| const uint32_t | path_flag ) |
Definition at line 64 of file light/common.h.
References PATH_RAY_CAMERA, PATH_RAY_DIFFUSE, PATH_RAY_GLOSSY, PATH_RAY_REFLECT, PATH_RAY_TRANSMIT, PATH_RAY_VOLUME_SCATTER, SHADER_EXCLUDE_ANY, SHADER_EXCLUDE_CAMERA, SHADER_EXCLUDE_DIFFUSE, SHADER_EXCLUDE_GLOSSY, SHADER_EXCLUDE_SCATTER, and SHADER_EXCLUDE_TRANSMIT.
Referenced by integrate_distant_lights(), integrate_light(), and integrator_eval_background_shader().
| ccl_device float light_pdf_area_to_solid_angle | ( | const float3 | Ng, |
| const float3 | I, | ||
| float | t ) |
Definition at line 53 of file light/common.h.
Referenced by area_light_eval(), area_light_mnee_sample_update(), background_portal_pdf(), background_portal_sample(), point_light_sample(), point_light_sample_from_intersection(), spot_light_sample(), and spot_light_sample_from_intersection().
| 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().