|
Blender V5.3
|
#include "kernel/globals.h"#include "kernel/types.h"#include "kernel/integrator/state.h"#include "kernel/util/colorspace.h"#include "kernel/closure/bsdf.h"#include "util/color.h"Go to the source code of this file.
Classes | |
| struct | GuidingRISSample |
Macros | |
| #define | GUIDING_FLT_LARGE 1.844e18f |
| #define | GUIDING_MAX_LIGHT_DISTANCE 1e6f |
| #define GUIDING_FLT_LARGE 1.844e18f |
Definition at line 21 of file kernel/integrator/guiding.h.
Referenced by guiding_record_direct_light().
| #define GUIDING_MAX_LIGHT_DISTANCE 1e6f |
Definition at line 22 of file kernel/integrator/guiding.h.
Referenced by guiding_record_background(), and guiding_record_direct_light().
| ccl_device_forceinline bool calculate_ris_target | ( | ccl_attr_maybe_unused ccl_private GuidingRISSample * | ris_sample, |
| ccl_attr_maybe_unused const ccl_private float | guiding_sampling_prob ) |
Definition at line 45 of file kernel/integrator/guiding.h.
References calculate_ris_target(), ccl_attr_maybe_unused, ccl_device_forceinline, ccl_private, and M_PI_F.
Referenced by calculate_ris_target().
| ccl_device_forceinline bool guiding_bsdf_init | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused const float3 | P, | ||
| ccl_attr_maybe_unused const float3 | N, | ||
| ccl_attr_maybe_unused ccl_private float & | rand ) |
Definition at line 669 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, ccl_private, guiding_bsdf_init(), N, and P.
Referenced by guiding_bsdf_init().
| ccl_device_forceinline float guiding_bsdf_pdf | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused const float3 | wo ) |
Definition at line 698 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, and guiding_bsdf_pdf().
Referenced by guiding_bsdf_pdf(), and surface_shader_bsdf_eval().
| ccl_device_forceinline float guiding_bsdf_sample | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused const float2 | rand_bsdf, | ||
| ccl_attr_maybe_unused ccl_private float3 * | wo ) |
Definition at line 683 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, ccl_private, guiding_bsdf_sample(), and make_float3().
Referenced by guiding_bsdf_sample().
| ccl_device_forceinline bool guiding_phase_init | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused const float3 | P, | ||
| ccl_attr_maybe_unused const float3 | D, | ||
| ccl_attr_maybe_unused const float | g, | ||
| ccl_attr_maybe_unused ccl_private float & | rand ) |
Definition at line 720 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, ccl_private, D, fabsf, guiding_phase_init(), and P.
Referenced by guiding_phase_init().
| ccl_device_forceinline float guiding_phase_pdf | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused const float3 | wo ) |
Definition at line 756 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, and guiding_phase_pdf().
Referenced by guiding_phase_pdf().
| ccl_device_forceinline float guiding_phase_sample | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused const float2 | rand_phase, | ||
| ccl_attr_maybe_unused ccl_private float3 * | wo ) |
Definition at line 741 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, ccl_private, guiding_phase_sample(), and make_float3().
Referenced by guiding_phase_sample().
| ccl_device_forceinline void guiding_record_background | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused IntegratorState | state, | ||
| ccl_attr_maybe_unused const Spectrum | L, | ||
| ccl_attr_maybe_unused const float | mis_weight ) |
Definition at line 498 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, D, GUIDING_MAX_LIGHT_DISTANCE, guiding_record_background(), INTEGRATOR_STATE, kernel_assert, kernel_data, L, make_float3(), P, PATH_RAY_SHADOW_CATCHER_PASS, spectrum_to_rgb(), and state.
Referenced by guiding_record_background(), integrate_background(), and integrate_sun_lights().
| ccl_device_forceinline void guiding_record_bssrdf_bounce | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused IntegratorState | state, | ||
| ccl_attr_maybe_unused const float | pdf, | ||
| ccl_attr_maybe_unused const float3 | N, | ||
| ccl_attr_maybe_unused const float3 | wo, | ||
| ccl_attr_maybe_unused const Spectrum | weight, | ||
| ccl_attr_maybe_unused const Spectrum | albedo ) |
Definition at line 295 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, clamp(), guiding_record_bssrdf_bounce(), INTEGRATOR_STATE, kernel_assert, kernel_data, N, one_float3(), PATH_RAY_SHADOW_CATCHER_PASS, spectrum_to_rgb(), and state.
Referenced by guiding_record_bssrdf_bounce().
| ccl_device_forceinline void guiding_record_bssrdf_segment | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused IntegratorState | state, | ||
| ccl_attr_maybe_unused const float3 | P, | ||
| ccl_attr_maybe_unused const float3 | wi ) |
Definition at line 229 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, guiding_record_bssrdf_segment(), INTEGRATOR_STATE, kernel_assert, kernel_data, one_float3(), P, PATH_RAY_SHADOW_CATCHER_PASS, state, and zero_float3().
Referenced by guiding_record_bssrdf_segment().
| ccl_device_forceinline void guiding_record_bssrdf_weight | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused IntegratorState | state, | ||
| ccl_attr_maybe_unused const Spectrum | weight, | ||
| ccl_attr_maybe_unused const Spectrum | albedo ) |
Definition at line 263 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, guiding_record_bssrdf_weight(), INTEGRATOR_STATE, kernel_assert, kernel_data, PATH_RAY_SHADOW_CATCHER_PASS, safe_divide_color(), spectrum_to_rgb(), state, and zero_float3().
Referenced by guiding_record_bssrdf_weight().
| ccl_device_forceinline void guiding_record_continuation_probability | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused IntegratorState | state, | ||
| ccl_attr_maybe_unused const float | continuation_probability ) |
Definition at line 595 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, guiding_record_continuation_probability(), INTEGRATOR_STATE, kernel_assert, kernel_data, PATH_RAY_SHADOW_CATCHER_PASS, and state.
Referenced by guiding_record_continuation_probability(), and integrator_intersect_terminate().
| ccl_device_forceinline void guiding_record_direct_light | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused IntegratorShadowState | state ) |
Definition at line 532 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, GUIDING_FLT_LARGE, GUIDING_MAX_LIGHT_DISTANCE, guiding_record_direct_light(), INTEGRATOR_STATE, kernel_data, make_float3(), PATH_RAY_SHADOW_FOR_AO, PATH_RAY_SHADOW_FOR_LIGHT_LINKING, reduce_max(), safe_divide(), safe_divide_color(), spectrum_to_rgb(), state, and unlit_throughput.
Referenced by guiding_record_direct_light(), and integrator_shade_shadow().
| ccl_device_forceinline void guiding_record_light_surface_segment | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused IntegratorState | state, | ||
| ccl_attr_maybe_unused const ccl_private Intersection *ccl_restrict | isect ) |
Definition at line 456 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, ccl_private, ccl_restrict, D, guiding_record_light_surface_segment(), INTEGRATOR_STATE, kernel_assert, kernel_data, one_float3(), P, PATH_RAY_SHADOW_CATCHER_PASS, state, and zero_float3().
Referenced by guiding_record_light_surface_segment(), and integrate_light_forward().
| ccl_device_forceinline void guiding_record_surface_bounce | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused IntegratorState | state, | ||
| ccl_attr_maybe_unused const Spectrum | weight, | ||
| ccl_attr_maybe_unused const float | pdf, | ||
| ccl_attr_maybe_unused const float3 | N, | ||
| ccl_attr_maybe_unused const float3 | wo, | ||
| ccl_attr_maybe_unused const float2 | roughness, | ||
| ccl_attr_maybe_unused const float | eta ) |
Definition at line 162 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, clamp(), fminf, guiding_record_surface_bounce(), INTEGRATOR_STATE, kernel_assert, kernel_data, N, one_float3(), PATH_RAY_SHADOW_CATCHER_PASS, safe_sqrtf(), spectrum_to_rgb(), and state.
Referenced by guiding_record_surface_bounce(), and integrate_surface_bsdf_bssrdf_bounce().
| ccl_device_forceinline void guiding_record_surface_emission | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused IntegratorState | state, | ||
| ccl_attr_maybe_unused const Spectrum | Le, | ||
| ccl_attr_maybe_unused const float | mis_weight ) |
Definition at line 200 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, guiding_record_surface_emission(), INTEGRATOR_STATE, kernel_assert, kernel_data, PATH_RAY_SHADOW_CATCHER_PASS, spectrum_to_rgb(), and state.
Referenced by guiding_record_surface_emission(), integrate_light_forward(), and integrate_surface_emission().
| ccl_device_forceinline void guiding_record_surface_segment | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused IntegratorState | state, | ||
| ccl_attr_maybe_unused const ccl_private ShaderData * | sd ) |
Definition at line 129 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, ccl_private, guiding_record_surface_segment(), INTEGRATOR_STATE, kernel_assert, kernel_data, one_float3(), PATH_RAY_SHADOW_CATCHER_PASS, state, and zero_float3().
Referenced by guiding_record_surface_segment(), and integrate_surface().
| ccl_device_forceinline void guiding_record_volume_bounce | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused IntegratorState | state, | ||
| ccl_attr_maybe_unused const Spectrum | weight, | ||
| ccl_attr_maybe_unused const float | pdf, | ||
| ccl_attr_maybe_unused const float3 | wo, | ||
| ccl_attr_maybe_unused const float | roughness ) |
Definition at line 363 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, guiding_record_volume_bounce(), INTEGRATOR_STATE, kernel_assert, kernel_data, make_float3(), one_float3(), PATH_RAY_SHADOW_CATCHER_PASS, spectrum_to_rgb(), and state.
Referenced by guiding_record_volume_bounce().
| ccl_device_forceinline void guiding_record_volume_emission | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused IntegratorState | state, | ||
| ccl_attr_maybe_unused const Spectrum | Le ) |
Definition at line 429 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, guiding_record_volume_emission(), INTEGRATOR_STATE, kernel_assert, kernel_data, PATH_RAY_SHADOW_CATCHER_PASS, spectrum_to_rgb(), and state.
Referenced by guiding_record_volume_emission().
| ccl_device_forceinline void guiding_record_volume_segment | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused IntegratorState | state, | ||
| ccl_attr_maybe_unused const float3 | P, | ||
| ccl_attr_maybe_unused const float3 | I ) |
Definition at line 330 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, guiding_record_volume_segment(), I, INTEGRATOR_STATE, kernel_assert, kernel_data, one_float3(), P, PATH_RAY_SHADOW_CATCHER_PASS, state, and zero_float3().
Referenced by guiding_record_volume_segment().
| ccl_device_forceinline void guiding_record_volume_transmission | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused IntegratorState | state, | ||
| ccl_attr_maybe_unused const float3 | transmittance_weight ) |
Definition at line 398 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, guiding_record_volume_transmission(), INTEGRATOR_STATE, kernel_assert, kernel_data, PATH_RAY_SHADOW_CATCHER_PASS, and state.
Referenced by guiding_record_volume_transmission().
| ccl_device_forceinline float guiding_surface_incoming_radiance_pdf | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused const float3 | wo ) |
Definition at line 708 of file kernel/integrator/guiding.h.
References ccl_attr_maybe_unused, ccl_device_forceinline, and guiding_surface_incoming_radiance_pdf().
Referenced by guiding_surface_incoming_radiance_pdf().
| ccl_device_forceinline void guiding_write_debug_passes | ( | ccl_attr_maybe_unused KernelGlobals | kg, |
| ccl_attr_maybe_unused IntegratorState | state, | ||
| ccl_attr_maybe_unused const ccl_private ShaderData * | sd, | ||
| ccl_attr_maybe_unused ccl_global float *ccl_restrict | render_buffer ) |
Definition at line 618 of file kernel/integrator/guiding.h.
References bsdf_get_specular_roughness_squared(), ccl_attr_maybe_unused, ccl_device_forceinline, ccl_global, ccl_private, ccl_restrict, CLOSURE_IS_BSDF_OR_BSSRDF, film_pass_pixel_render_buffer(), film_write_pass_float(), guiding_write_debug_passes(), INTEGRATOR_STATE, kernel_data, PASS_UNUSED, render_buffer, and state.
Referenced by guiding_write_debug_passes(), and integrate_surface().