|
Blender V4.5
|
#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 |
| ccl_device_forceinline bool calculate_ris_target | ( | ccl_private GuidingRISSample * | ris_sample, |
| const ccl_private float | guiding_sampling_prob ) |
Definition at line 42 of file kernel/integrator/guiding.h.
References calculate_ris_target(), ccl_device_forceinline, ccl_private, and M_PI_F.
Referenced by calculate_ris_target().
| ccl_device_forceinline bool guiding_bsdf_init | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const float3 | P, | ||
| const float3 | N, | ||
| ccl_private float & | rand ) |
Definition at line 546 of file kernel/integrator/guiding.h.
References ccl_device_forceinline, ccl_private, guiding_bsdf_init(), N, P, and state.
Referenced by guiding_bsdf_init().
| ccl_device_forceinline float guiding_bsdf_pdf | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const float3 | wo ) |
Definition at line 580 of file kernel/integrator/guiding.h.
References ccl_device_forceinline, guiding_bsdf_pdf(), and state.
Referenced by guiding_bsdf_pdf(), and surface_shader_bsdf_eval().
| ccl_device_forceinline float guiding_bsdf_sample | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const float2 | rand_bsdf, | ||
| ccl_private float3 * | wo ) |
Definition at line 564 of file kernel/integrator/guiding.h.
References ccl_device_forceinline, ccl_private, guiding_bsdf_sample(), make_float3(), state, float2::x, and float2::y.
Referenced by guiding_bsdf_sample().
| ccl_device_forceinline bool guiding_phase_init | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const float3 | P, | ||
| const float3 | D, | ||
| const float | g, | ||
| ccl_private float & | rand ) |
Definition at line 604 of file kernel/integrator/guiding.h.
References ccl_device_forceinline, ccl_private, D, fabsf, guiding_phase_init(), P, and state.
Referenced by guiding_phase_init().
| ccl_device_forceinline float guiding_phase_pdf | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const float3 | wo ) |
Definition at line 645 of file kernel/integrator/guiding.h.
References ccl_device_forceinline, guiding_phase_pdf(), and state.
Referenced by guiding_phase_pdf().
| ccl_device_forceinline float guiding_phase_sample | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const float2 | rand_phase, | ||
| ccl_private float3 * | wo ) |
Definition at line 629 of file kernel/integrator/guiding.h.
References ccl_device_forceinline, ccl_private, guiding_phase_sample(), make_float3(), state, float2::x, and float2::y.
Referenced by guiding_phase_sample().
| ccl_device_forceinline void guiding_record_background | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const Spectrum | L, | ||
| const float | mis_weight ) |
Definition at line 415 of file kernel/integrator/guiding.h.
References assert, ccl_device_forceinline, D, guiding_record_background(), INTEGRATOR_STATE, 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_distant_lights().
| ccl_device_forceinline void guiding_record_bssrdf_bounce | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const float | pdf, | ||
| const float3 | N, | ||
| const float3 | wo, | ||
| const Spectrum | weight, | ||
| const Spectrum | albedo ) |
Definition at line 229 of file kernel/integrator/guiding.h.
References assert, 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 | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const float3 | P, | ||
| const float3 | wi ) |
Definition at line 172 of file kernel/integrator/guiding.h.
References assert, ccl_device_forceinline, guiding_record_bssrdf_segment(), INTEGRATOR_STATE, 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 | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const Spectrum | weight, | ||
| const Spectrum | albedo ) |
Definition at line 200 of file kernel/integrator/guiding.h.
References assert, 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 | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const float | continuation_probability ) |
Definition at line 479 of file kernel/integrator/guiding.h.
References assert, ccl_device_forceinline, guiding_record_continuation_probability(), INTEGRATOR_STATE, 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 | ( | KernelGlobals | kg, |
| IntegratorShadowState | state ) |
Definition at line 445 of file kernel/integrator/guiding.h.
References ccl_device_forceinline, guiding_record_direct_light(), INTEGRATOR_STATE, kernel_data, safe_divide_color(), spectrum_to_rgb(), and state.
Referenced by guiding_record_direct_light(), and integrator_shade_shadow().
| ccl_device_forceinline void guiding_record_light_surface_segment | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const ccl_private Intersection *ccl_restrict | isect ) |
Definition at line 380 of file kernel/integrator/guiding.h.
References assert, ccl_device_forceinline, ccl_private, ccl_restrict, D, guiding_record_light_surface_segment(), INTEGRATOR_STATE, kernel_data, one_float3(), P, PATH_RAY_SHADOW_CATCHER_PASS, state, and zero_float3().
Referenced by guiding_record_light_surface_segment(), and integrate_light().
| ccl_device_forceinline void guiding_record_surface_bounce | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const ccl_private ShaderData * | sd, | ||
| const Spectrum | weight, | ||
| const float | pdf, | ||
| const float3 | N, | ||
| const float3 | wo, | ||
| const float2 | roughness, | ||
| const float | eta ) |
Definition at line 110 of file kernel/integrator/guiding.h.
References assert, ccl_device_forceinline, ccl_private, 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(), state, float2::x, and float2::y.
Referenced by guiding_record_surface_bounce(), and integrate_surface_bsdf_bssrdf_bounce().
| ccl_device_forceinline void guiding_record_surface_emission | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const Spectrum | Le, | ||
| const float | mis_weight ) |
Definition at line 147 of file kernel/integrator/guiding.h.
References assert, ccl_device_forceinline, guiding_record_surface_emission(), INTEGRATOR_STATE, kernel_data, PATH_RAY_SHADOW_CATCHER_PASS, spectrum_to_rgb(), and state.
Referenced by guiding_record_surface_emission(), integrate_light(), and integrate_surface_emission().
| ccl_device_forceinline void guiding_record_surface_segment | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const ccl_private ShaderData * | sd ) |
Definition at line 84 of file kernel/integrator/guiding.h.
References assert, ccl_device_forceinline, ccl_private, guiding_record_surface_segment(), INTEGRATOR_STATE, 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 | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const ccl_private ShaderData * | sd, | ||
| const Spectrum | weight, | ||
| const float | pdf, | ||
| const float3 | wo, | ||
| const float | roughness ) |
Definition at line 290 of file kernel/integrator/guiding.h.
References assert, ccl_device_forceinline, ccl_private, 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 | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const Spectrum | Le ) |
Definition at line 354 of file kernel/integrator/guiding.h.
References assert, ccl_device_forceinline, guiding_record_volume_emission(), INTEGRATOR_STATE, 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 | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const float3 | P, | ||
| const float3 | I ) |
Definition at line 262 of file kernel/integrator/guiding.h.
References assert, ccl_device_forceinline, guiding_record_volume_segment(), I, INTEGRATOR_STATE, 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 | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const float3 | transmittance_weight ) |
Definition at line 324 of file kernel/integrator/guiding.h.
References assert, ccl_device_forceinline, guiding_record_volume_transmission(), INTEGRATOR_STATE, kernel_data, PATH_RAY_SHADOW_CATCHER_PASS, and state.
Referenced by guiding_record_volume_transmission().
| ccl_device_forceinline float guiding_surface_incoming_radiance_pdf | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const float3 | wo ) |
Definition at line 591 of file kernel/integrator/guiding.h.
References ccl_device_forceinline, guiding_surface_incoming_radiance_pdf(), and state.
Referenced by guiding_surface_incoming_radiance_pdf().
| ccl_device_forceinline void guiding_write_debug_passes | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const ccl_private ShaderData * | sd, | ||
| ccl_global float *ccl_restrict | render_buffer ) |
Definition at line 500 of file kernel/integrator/guiding.h.
References bsdf_get_specular_roughness_squared(), 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(), i, INTEGRATOR_STATE, kernel_data, PASS_UNUSED, render_buffer, and state.
Referenced by guiding_write_debug_passes(), and integrate_surface().