|
Blender V5.3
|
#include "kernel/integrator/path_state.h"#include "kernel/integrator/surface_shader.h"#include "kernel/film/data_passes.h"#include "kernel/film/denoising_passes.h"#include "kernel/film/light_passes.h"#include "kernel/light/sample.h"#include "kernel/geom/motion_triangle.h"#include "kernel/geom/triangle.h"#include "kernel/integrator/guiding.h"#include "kernel/integrator/shadow_linking.h"#include "kernel/integrator/subsurface.h"#include "kernel/integrator/volume_stack.h"#include "kernel/types.h"#include "util/math_intersect.h"Go to the source code of this file.
| ccl_device_inline IntegratorShadowState integrate_direct_light_shadow_init_common | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const ccl_private Ray *ccl_restrict | ray, | ||
| const Spectrum | bsdf_spectrum, | ||
| const int | light_group, | ||
| const int | mnee_vertex_count, | ||
| const bool | constant_light_shader ) |
Definition at line 210 of file shade_surface.h.
References average(), bsdf_eval_average, ccl_private, ccl_restrict, DEVICE_KERNEL_INTEGRATOR_INTERSECT_SHADOW, DEVICE_KERNEL_INTEGRATOR_SHADE_LIGHT_NEE, DEVICE_KERNEL_INTEGRATOR_SHADOW_PATH_MNEE_PENDING, integrate_direct_light_shadow_init_common(), integrator_shadow_path_init(), integrator_shadow_path_next(), INTEGRATOR_STATE, INTEGRATOR_STATE_WRITE, integrator_state_write_shadow_ray(), integrator_state_write_shadow_ray_self(), kernel_data, KERNEL_FEATURE_LIGHT_TREE, KERNEL_FEATURE_NODE_PORTAL, KERNEL_FEATURE_PATH_GUIDING, sample, state, and unlit_throughput.
Referenced by integrate_direct_light_shadow_init_common(), and integrate_surface_direct_light().
| ccl_device int integrate_surface | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| ccl_global float *ccl_restrict | render_buffer ) |
Definition at line 767 of file shade_surface.h.
References ccl_device, ccl_global, ccl_restrict, film_write_data_passes(), guiding_record_surface_segment(), guiding_write_debug_passes(), integrate_surface(), integrate_surface_bsdf_bssrdf_bounce(), integrate_surface_direct_light(), integrate_surface_emission(), integrate_surface_holdout(), integrate_surface_shader_setup(), integrate_surface_terminate(), INTEGRATOR_STATE, INTEGRATOR_STATE_WRITE, kernel_data, KERNEL_FEATURE_AO, KERNEL_FEATURE_PATH_GUIDING, LABEL_CACHE_MISS, LABEL_NONE, LABEL_TRANSMIT, PATH_RAY_SUBSURFACE, path_state_rng_load(), PROFILING_EVENT, PROFILING_INIT_FOR_SHADER, PROFILING_SHADE_SURFACE_AO, PROFILING_SHADE_SURFACE_DIRECT_LIGHT, PROFILING_SHADE_SURFACE_EVAL, PROFILING_SHADE_SURFACE_INDIRECT_LIGHT, PROFILING_SHADE_SURFACE_PASSES, PROFILING_SHADE_SURFACE_SETUP, PROFILING_SHADER, render_buffer, SD_HAS_BSSRDF_BUMP, SD_HAS_ONLY_VOLUME, SHADER_EVAL_CACHE_MISS, SR_BSDF_HAS_DISPERSION, SR_CACHE_MISS, SR_EMISSION, state, surface_shader_eval(), and surface_shader_prepare_closures().
Referenced by integrate_surface(), and integrator_shade_surface().
| ccl_device_forceinline int integrate_surface_bsdf_bssrdf_bounce | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| ccl_private ShaderData * | sd, | ||
| const ccl_private RNGState * | rng_state ) |
Definition at line 497 of file shade_surface.h.
References bsdf_eval(), bsdf_eval_is_zero(), bsdf_eval_pass_diffuse_weight(), bsdf_eval_pass_glossy_weight(), bsdf_eval_sum(), bsdf_widen_dD(), ccl_device_forceinline, ccl_optional_struct_init, ccl_private, CLOSURE_IS_BSSRDF, CLOSURE_IS_RAY_PORTAL, D, differential_make_compact(), FLT_MAX, fminf, guiding_record_surface_bounce(), integrate_surface_bsdf_bssrdf_bounce(), integrate_surface_ray_offset(), integrate_surface_ray_portal(), INTEGRATOR_STATE, INTEGRATOR_STATE_WRITE, intersection_t_offset(), kernel_data, KERNEL_FEATURE_LIGHT_LINKING, KERNEL_FEATURE_LIGHT_PASSES, KERNEL_FEATURE_PATH_GUIDING, LABEL_NONE, LABEL_TRANSPARENT, make_float2, normalize, P, pass_diffuse_weight, path_state_next(), path_state_rng_3D(), PRNG_SURFACE_BSDF, SR_BSDF, SR_BSSRDF, state, surface_shader_bsdf_bssrdf_pick(), and surface_shader_bsdf_sample_closure().
Referenced by integrate_surface(), and integrate_surface_bsdf_bssrdf_bounce().
| ccl_device ShaderEvalResult integrate_surface_direct_light | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| ccl_private ShaderData * | sd, | ||
| const ccl_private RNGState * | rng_state ) |
Definition at line 326 of file shade_surface.h.
References bsdf_eval(), bsdf_eval_is_zero(), bsdf_eval_mul(), bsdf_eval_pass_diffuse_weight(), bsdf_eval_pass_glossy_weight(), bsdf_eval_sum(), bsdf_widen_dD(), ccl_optional_struct_init, ccl_private, dot(), integrate_direct_light_shadow_init_common(), integrate_surface_direct_light(), integrate_surface_ray_offset(), INTEGRATOR_STATE, INTEGRATOR_STATE_WRITE, kernel_assert, kernel_data, kernel_data_fetch, KERNEL_FEATURE_LIGHT_PASSES, KERNEL_FEATURE_LIGHT_TREE, KERNEL_FEATURE_MNEE, light_link_receiver_nee(), light_sample_from_position(), light_sample_mis_weight_nee(), light_sample_shader_eval_nee_constant(), light_sample_terminate(), light_sample_to_surface_shadow_ray(), LIGHT_TRIANGLE, OBJECT_NONE, pass_diffuse_weight, PATH_MNEE_SAMPLED, PATH_RAY_ANY_PASS, PATH_RAY_SURFACE_PASS, path_state_rng_3D(), path_state_rng_light_termination(), PRIM_NONE, PRNG_LIGHT, SD_OBJECT_CAUSTICS_CASTER, SHADER_EVAL_EMPTY, SHADER_EVAL_OK, SR_BSDF_HAS_EVAL, state, and surface_shader_bsdf_eval().
Referenced by integrate_surface(), and integrate_surface_direct_light().
| ccl_device_forceinline void integrate_surface_emission | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| const ccl_private ShaderData * | sd, | ||
| ccl_global float *ccl_restrict | render_buffer ) |
Definition at line 122 of file shade_surface.h.
References ccl_device_forceinline, ccl_global, ccl_private, ccl_restrict, film_write_surface_emission(), guiding_record_surface_emission(), integrate_surface_emission(), INTEGRATOR_STATE, kernel_data, kernel_data_fetch, KERNEL_FEATURE_SHADOW_LINKING, L, LIGHT_LINK_MASK_ALL, light_link_object_match(), light_link_receiver_forward(), light_sample_mis_weight_forward_surface(), object_lightgroup(), PATH_RAY_VISIBILITY_CAMERA, render_buffer, state, and surface_shader_emission().
Referenced by integrate_surface(), and integrate_surface_emission().
| ccl_device_forceinline bool integrate_surface_holdout | ( | KernelGlobals | kg, |
| ConstIntegratorState | state, | ||
| ccl_private ShaderData * | sd, | ||
| ccl_global float *ccl_restrict | render_buffer ) |
Definition at line 99 of file shade_surface.h.
References average(), ccl_device_forceinline, ccl_global, ccl_private, ccl_restrict, film_write_holdout(), integrate_surface_holdout(), INTEGRATOR_STATE, isequal(), one_spectrum, PATH_RAY_TRANSPARENT_BACKGROUND, render_buffer, SD_OBJECT_HOLDOUT_MASK, SR_HOLDOUT, state, and surface_shader_apply_holdout().
Referenced by integrate_surface(), and integrate_surface_holdout().
| ccl_device_forceinline float3 integrate_surface_ray_offset | ( | KernelGlobals | kg, |
| const ccl_private ShaderData * | sd, | ||
| const float3 | ray_P, | ||
| const float3 | ray_D ) |
Definition at line 46 of file shade_surface.h.
References ccl_device_forceinline, ccl_private, integrate_surface_ray_offset(), kernel_assert, motion_triangle_vertices(), object_get_inverse_transform(), PRIMITIVE_MOTION_TRIANGLE, PRIMITIVE_TRIANGLE, ray_offset(), ray_triangle_intersect_self(), SD_OBJECT_TRANSFORM_APPLIED, transform_direction(), transform_point(), and triangle_vertices().
Referenced by integrate_surface_bsdf_bssrdf_bounce(), integrate_surface_direct_light(), integrate_surface_ray_offset(), and integrate_surface_ray_portal().
| ccl_device int integrate_surface_ray_portal | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| ccl_private ShaderData * | sd, | ||
| const ccl_private ShaderClosure * | sc ) |
Definition at line 162 of file shade_surface.h.
References ccl_device, ccl_private, CLOSURE_IS_BSDF_OR_BSSRDF, D, differential_make_compact(), FLT_MAX, integrate_surface_ray_offset(), integrate_surface_ray_portal(), INTEGRATOR_STATE_WRITE, LABEL_NONE, LABEL_RAY_PORTAL, LABEL_TRANSMIT, len_squared(), OBJECT_NONE, P, path_state_next(), and state.
Referenced by integrate_surface_bsdf_bssrdf_bounce(), and integrate_surface_ray_portal().
| CCL_NAMESPACE_BEGIN ccl_device_forceinline void integrate_surface_shader_setup | ( | KernelGlobals | kg, |
| ConstIntegratorState | state, | ||
| ccl_private ShaderData * | sd ) |
Definition at line 29 of file shade_surface.h.
References ccl_device_forceinline, ccl_optional_struct_init, ccl_private, integrate_surface_shader_setup(), integrator_state_read_isect(), integrator_state_read_ray(), shader_setup_from_ray(), and state.
Referenced by integrate_surface(), integrate_surface_shader_setup(), and integrator_intersect_mnee().
| ccl_device_forceinline bool integrate_surface_terminate | ( | IntegratorState | state, |
| const uint32_t | path_flag ) |
Definition at line 658 of file shade_surface.h.
References ccl_device_forceinline, float, integrate_surface_terminate(), INTEGRATOR_STATE, INTEGRATOR_STATE_WRITE, PATH_RAY_TERMINATE_ON_NEXT_SURFACE, and state.
Referenced by integrate_surface(), and integrate_surface_terminate().
| ccl_device_forceinline void integrator_shade_surface | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| ccl_global float *ccl_restrict | render_buffer ) |
Definition at line 922 of file shade_surface.h.
References ccl_device_forceinline, ccl_global, ccl_restrict, DEVICE_KERNEL_INTEGRATOR_SHADOW_PATH_MNEE_PENDING, integrate_surface(), integrator_path_cache_miss_sorted(), integrator_path_terminate(), integrator_shade_surface(), integrator_shade_surface_next_kernel(), integrator_shadow_path_terminate(), INTEGRATOR_STATE, INTEGRATOR_STATE_WRITE, kernel_data, KERNEL_FEATURE_MNEE, LABEL_CACHE_MISS, LABEL_NONE, LABEL_SUBSURFACE_SCATTER, LABEL_TRANSPARENT, PATH_MNEE_SAMPLED, render_buffer, and state.
Referenced by integrator_megakernel(), integrator_shade_surface(), and integrator_shade_surface_raytrace().
| ccl_device_forceinline void integrator_shade_surface_next_kernel | ( | IntegratorState | state | ) |
Definition at line 908 of file shade_surface.h.
References ccl_device_forceinline, DEVICE_KERNEL_INTEGRATOR_INTERSECT_CLOSEST, DEVICE_KERNEL_INTEGRATOR_INTERSECT_SUBSURFACE, integrator_path_next(), integrator_shade_surface_next_kernel(), INTEGRATOR_STATE, kernel_assert, PATH_RAY_SUBSURFACE, and state.
Referenced by integrator_intersect_dedicated_light(), integrator_shade_dedicated_light(), integrator_shade_surface(), and integrator_shade_surface_next_kernel().
| ccl_device_forceinline void integrator_shade_surface_raytrace | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| ccl_global float *ccl_restrict | render_buffer ) |
Definition at line 967 of file shade_surface.h.
References ccl_device_forceinline, ccl_global, ccl_restrict, DEVICE_KERNEL_INTEGRATOR_SHADE_SURFACE_RAYTRACE, integrator_shade_surface(), integrator_shade_surface_raytrace(), KERNEL_FEATURE_NODE_MASK_SURFACE, render_buffer, and state.
Referenced by integrator_megakernel(), and integrator_shade_surface_raytrace().