|
Blender V5.3
|
#include "kernel/geom/object.h"#include "kernel/globals.h"#include "kernel/integrator/state.h"#include "kernel/light/area.h"#include "kernel/light/background.h"#include "kernel/light/point.h"#include "kernel/light/spot.h"#include "kernel/light/sun.h"#include "kernel/light/triangle.h"#include "kernel/sample/lcg.h"#include "kernel/types.h"Go to the source code of this file.
Functions | |
| CCL_NAMESPACE_BEGIN ccl_device_inline bool | light_select_reached_max_bounces (KernelGlobals kg, const int index, const int bounce) |
| ccl_device_inline int | light_link_receiver_nee (KernelGlobals kg, const ccl_private ShaderData *sd) |
| ccl_device_inline int | light_link_receiver_forward (KernelGlobals kg, IntegratorState state) |
| ccl_device_inline bool | light_link_object_match (KernelGlobals kg, const int receiver, const int emitter) |
| template<bool in_volume_segment> | |
| ccl_device_inline bool | light_sample (KernelGlobals kg, const int lamp, const float2 rand, const float3 P, const float3 N, const int runtime_flags, const uint32_t path_flag, ccl_private LightSample *ls) |
| template<bool in_volume_segment> | |
| ccl_device bool | light_sample (KernelGlobals kg, const float3 rand_light, const float time, const float3 P, const float3 N, const int object_receiver, const int runtime_flags, const int bounce, const uint32_t path_flag, ccl_private LightSample *ls) |
| template<bool is_main_path> | |
| ccl_device_forceinline int | lights_intersect_impl (KernelGlobals kg, const ccl_private Ray *ccl_restrict ray, ccl_private Intersection *ccl_restrict isect, const int last_prim, const int last_object, const int last_type, const PathRayVisibility path_visibility, const uint32_t path_flag, const uint8_t path_mnee, const int receiver_forward, ccl_private uint *lcg_state, int num_hits) |
| ccl_device bool | lights_intersect (KernelGlobals kg, IntegratorState state, const ccl_private Ray *ccl_restrict ray, ccl_private Intersection *ccl_restrict isect, const int last_prim, const int last_object, const int last_type, const PathRayVisibility path_visibility, const uint32_t path_flag) |
| ccl_device int | lights_intersect_shadow_linked (KernelGlobals kg, const ccl_private Ray *ccl_restrict ray, ccl_private Intersection *ccl_restrict isect, const int last_prim, const int last_object, const int last_type, const PathRayVisibility path_visibility, const uint32_t path_flag, const int receiver_forward, ccl_private uint *lcg_state, const int num_hits) |
| ccl_device LightEval | light_eval_from_intersection (KernelGlobals kg, const ccl_private Intersection *ccl_restrict isect, const float3 ray_P, const float3 ray_D, const float3 N, const uint32_t path_flag) |
| ccl_device void | light_normal_uv_from_position (KernelGlobals kg, const ccl_global KernelLight *klight, const float3 P, const float3 D, ccl_private float3 &Ng, ccl_private float2 &uv) |
| ccl_device LightEval light_eval_from_intersection | ( | KernelGlobals | kg, |
| const ccl_private Intersection *ccl_restrict | isect, | ||
| const float3 | ray_P, | ||
| const float3 | ray_D, | ||
| const float3 | N, | ||
| const uint32_t | path_flag ) |
Definition at line 437 of file kernel/light/light.h.
References area_light_eval_from_intersection(), ccl_global, ccl_private, ccl_restrict, kernel_assert, kernel_data_fetch, LIGHT_AREA, light_eval_from_intersection(), LIGHT_POINT, LIGHT_SPOT, N, point_light_eval_from_intersection(), and spot_light_eval_from_intersection().
Referenced by integrate_light_forward(), and light_eval_from_intersection().
| ccl_device_inline bool light_link_object_match | ( | KernelGlobals | kg, |
| const int | receiver, | ||
| const int | emitter ) |
Definition at line 60 of file kernel/light/light.h.
References ccl_device_inline, kernel_assert, kernel_data, kernel_data_fetch, KERNEL_FEATURE_LIGHT_LINKING, light_link_object_match(), and OBJECT_NONE.
Referenced by integrate_sun_lights(), integrate_surface_emission(), light_link_object_match(), light_sample(), and lights_intersect_impl().
| ccl_device_inline int light_link_receiver_forward | ( | KernelGlobals | kg, |
| IntegratorState | state ) |
Definition at line 47 of file kernel/light/light.h.
References ccl_device_inline, INTEGRATOR_STATE, kernel_data, KERNEL_FEATURE_LIGHT_LINKING, light_link_receiver_forward(), OBJECT_NONE, and state.
Referenced by integrate_sun_lights(), integrate_surface_emission(), light_link_receiver_forward(), light_sample_mis_weight_forward_background(), light_sample_mis_weight_forward_lamp(), light_sample_mis_weight_forward_surface(), and lights_intersect().
| ccl_device_inline int light_link_receiver_nee | ( | KernelGlobals | kg, |
| const ccl_private ShaderData * | sd ) |
Definition at line 34 of file kernel/light/light.h.
References ccl_device_inline, ccl_private, kernel_data, KERNEL_FEATURE_LIGHT_LINKING, light_link_receiver_nee(), and OBJECT_NONE.
Referenced by integrate_surface_direct_light(), and light_link_receiver_nee().
| ccl_device void light_normal_uv_from_position | ( | KernelGlobals | kg, |
| const ccl_global KernelLight * | klight, | ||
| const float3 | P, | ||
| const float3 | D, | ||
| ccl_private float3 & | Ng, | ||
| ccl_private float2 & | uv ) |
Definition at line 462 of file kernel/light/light.h.
References area_light_uv(), ccl_device, ccl_global, ccl_private, D, kernel_assert, LIGHT_AREA, light_normal_uv_from_position(), LIGHT_POINT, LIGHT_SPOT, LIGHT_SUN, normalize, P, point_light_uv(), spot_light_to_local(), spot_light_uv(), and sun_light_uv().
Referenced by integrate_light_nee(), light_normal_uv_from_position(), and light_sample_shader_eval_forward().
| ccl_device bool light_sample | ( | KernelGlobals | kg, |
| const float3 | rand_light, | ||
| const float | time, | ||
| const float3 | P, | ||
| const float3 | N, | ||
| const int | object_receiver, | ||
| const int | runtime_flags, | ||
| const int | bounce, | ||
| const uint32_t | path_flag, | ||
| ccl_private LightSample * | ls ) |
Definition at line 157 of file kernel/light/light.h.
References ccl_device, ccl_global, ccl_private, kernel_data, kernel_data_fetch, light_link_object_match(), light_sample(), light_select_reached_max_bounces(), make_float2, N, P, PATH_RAY_SHADOW_CATCHER_PASS, SD_OBJECT_SHADOW_CATCHER, triangle_light_sample(), and UNLIKELY.
| ccl_device_inline bool light_sample | ( | KernelGlobals | kg, |
| const int | lamp, | ||
| const float2 | rand, | ||
| const float3 | P, | ||
| const float3 | N, | ||
| const int | runtime_flags, | ||
| const uint32_t | path_flag, | ||
| ccl_private LightSample * | ls ) |
Definition at line 83 of file kernel/light/light.h.
References area_light_sample(), background_light_sample(), ccl_device_inline, ccl_global, ccl_private, D, FLT_MAX, kernel_data_fetch, LIGHT_BACKGROUND, LIGHT_POINT, light_sample(), LIGHT_SPOT, LIGHT_SUN, N, object_lightgroup(), P, PATH_RAY_SHADOW_CATCHER_PASS, point_light_sample(), SHADER_EXCLUDE_SHADOW_CATCHER, spot_light_sample(), sun_light_sample(), and zero_float3().
Referenced by light_sample(), light_sample(), light_sample_from_position(), light_sample_from_volume_segment(), mnee_compute_constraint_derivatives(), and mnee_newton_solver().
| CCL_NAMESPACE_BEGIN ccl_device_inline bool light_select_reached_max_bounces | ( | KernelGlobals | kg, |
| const int | index, | ||
| const int | bounce ) |
Definition at line 25 of file kernel/light/light.h.
References ccl_device_inline, index, kernel_data_fetch, and light_select_reached_max_bounces().
Referenced by light_sample(), and light_select_reached_max_bounces().
| ccl_device bool lights_intersect | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const ccl_private Ray *ccl_restrict | ray, | ||
| ccl_private Intersection *ccl_restrict | isect, | ||
| const int | last_prim, | ||
| const int | last_object, | ||
| const int | last_type, | ||
| const PathRayVisibility | path_visibility, | ||
| const uint32_t | path_flag ) |
Definition at line 374 of file kernel/light/light.h.
References ccl_device, ccl_private, ccl_restrict, INTEGRATOR_STATE, light_link_receiver_forward(), lights_intersect(), lights_intersect_impl(), PRIM_NONE, and state.
Referenced by integrator_intersect_closest(), and lights_intersect().
| ccl_device_forceinline int lights_intersect_impl | ( | KernelGlobals | kg, |
| const ccl_private Ray *ccl_restrict | ray, | ||
| ccl_private Intersection *ccl_restrict | isect, | ||
| const int | last_prim, | ||
| const int | last_object, | ||
| const int | last_type, | ||
| const PathRayVisibility | path_visibility, | ||
| const uint32_t | path_flag, | ||
| const uint8_t | path_mnee, | ||
| const int | receiver_forward, | ||
| ccl_private uint * | lcg_state, | ||
| int | num_hits ) |
Definition at line 233 of file kernel/light/light.h.
References area_light_intersect(), ccl_device_forceinline, ccl_global, ccl_private, ccl_restrict, FLT_MAX, kernel_assert, kernel_data, kernel_data_fetch, KERNEL_FEATURE_SHADOW_LINKING, lcg_step_float(), LIGHT_AREA, LIGHT_LINK_MASK_ALL, light_link_object_match(), LIGHT_POINT, LIGHT_SPOT, LIGHT_SUN, lights_intersect_impl(), PATH_MNEE_CULL_LIGHT_CONNECTION, PATH_RAY_SHADOW_CATCHER_PASS, PATH_RAY_VISIBILITY_CAMERA, point_light_intersect(), PRIM_NONE, PRIMITIVE_LAMP, SHADER_EXCLUDE_CAMERA, SHADER_EXCLUDE_SHADOW_CATCHER, SHADER_USE_MIS, spot_light_intersect(), and sun_light_intersect().
Referenced by lights_intersect(), lights_intersect_impl(), and lights_intersect_shadow_linked().
| ccl_device int lights_intersect_shadow_linked | ( | KernelGlobals | kg, |
| const ccl_private Ray *ccl_restrict | ray, | ||
| ccl_private Intersection *ccl_restrict | isect, | ||
| const int | last_prim, | ||
| const int | last_object, | ||
| const int | last_type, | ||
| const PathRayVisibility | path_visibility, | ||
| const uint32_t | path_flag, | ||
| const int | receiver_forward, | ||
| ccl_private uint * | lcg_state, | ||
| const int | num_hits ) |
Definition at line 408 of file kernel/light/light.h.
References ccl_device, ccl_private, ccl_restrict, lights_intersect_impl(), lights_intersect_shadow_linked(), and PATH_MNEE_NONE.
Referenced by lights_intersect_shadow_linked().