|
Blender V5.3
|
#include "draw_gsplat_lib.bsl.hh"#include "draw_intersect.bsl.hh"#include "draw_model.bsl.hh"#include "draw_view.bsl.hh"#include "draw_viewlayer.bsl.hh"#include "draw_volume.bsl.hh"#include "eevee_bxdf_lut_lib.bsl.hh"#include "eevee_camera_lib.bsl.hh"#include "eevee_fast_gi.bsl.hh"#include "eevee_hiz.bsl.hh"#include "eevee_light_data.bsl.hh"#include "eevee_light_eval.bsl.hh"#include "eevee_light_iter.bsl.hh"#include "eevee_lightprobe.bsl.hh"#include "eevee_lightprobe_plane.bsl.hh"#include "eevee_nodetree.bsl.hh"#include "eevee_nodetree_closures_lib.bsl.hh"#include "eevee_pipeline.bsl.hh"#include "eevee_ray_trace_screen_lib.bsl.hh"#include "eevee_renderpass.bsl.hh"#include "eevee_sampling_lib.bsl.hh"#include "eevee_shadow.bsl.hh"#include "eevee_uniform.bsl.hh"#include "eevee_utility_tx.bsl.hh"#include "gpu_shader_codegen_lib.glsl"#include "gpu_shader_math_base.bsl.hh"#include "gpu_shader_utildefines.bsl.hh"Go to the source code of this file.
Classes | |
| struct | eevee::Raycast |
| struct | LightAccumulation |
| struct | ShadingData |
| struct | KernelGlobals |
| struct | Coordinates |
Namespaces | |
| namespace | eevee |
Functions | |
| void | closure_weights_reset (KernelGlobals &kg, ShadingData &sd, float closure_rand) |
| template<typename T> | |
| void | closure_base_copy (ClosureUndetermined &cl, T in_cl) |
| template void | closure_base_copy< ClosureDiffuse > (ClosureUndetermined &, ClosureDiffuse) |
| template void | closure_base_copy< ClosureSubsurface > (ClosureUndetermined &, ClosureSubsurface) |
| template void | closure_base_copy< ClosureTranslucent > (ClosureUndetermined &, ClosureTranslucent) |
| template void | closure_base_copy< ClosureReflection > (ClosureUndetermined &, ClosureReflection) |
| template void | closure_base_copy< ClosureRefraction > (ClosureUndetermined &, ClosureRefraction) |
| template void | closure_base_copy< ClosureThinRefraction > (ClosureUndetermined &, ClosureThinRefraction) |
| Closure | closure_eval (KernelGlobals &kg, ShadingData &sd, ClosureDiffuse diffuse) |
| Closure | closure_eval (KernelGlobals &kg, ShadingData &sd, ClosureSubsurface subsurface) |
| Closure | closure_eval (KernelGlobals &kg, ShadingData &sd, ClosureTranslucent translucent) |
| Closure | closure_eval (KernelGlobals &kg, ShadingData &sd, ClosureReflection reflection) |
| Closure | closure_eval (KernelGlobals &kg, ShadingData &sd, ClosureRefraction refraction) |
| Closure | closure_eval (KernelGlobals &kg, ShadingData &sd, ClosureThinRefraction refraction) |
| Closure | closure_eval (KernelGlobals &, ShadingData &sd, ClosureEmission emission) |
| Closure | closure_eval (KernelGlobals &, ShadingData &sd, ClosureTransparency transparency) |
| Closure | closure_eval (KernelGlobals &, ShadingData &sd, ClosureVolumeScatter volume_scatter) |
| Closure | closure_eval (KernelGlobals &, ShadingData &sd, ClosureVolumeAbsorption volume_absorption) |
| Closure | closure_eval (KernelGlobals &, ShadingData &, ClosureHair) |
| Closure | closure_eval (KernelGlobals &kg, ShadingData &sd, ClosureReflection reflection, ClosureRefraction refraction) |
| Closure | closure_eval (KernelGlobals &kg, ShadingData &sd, ClosureDiffuse diffuse, ClosureReflection reflection) |
| Closure | closure_eval (KernelGlobals &kg, ShadingData &sd, ClosureReflection reflection, ClosureReflection coat) |
| Closure | closure_eval (KernelGlobals &kg, ShadingData &sd, ClosureVolumeScatter volume_scatter, ClosureVolumeAbsorption volume_absorption, ClosureEmission emission) |
| Closure | closure_eval (KernelGlobals &kg, ShadingData &sd, ClosureDiffuse diffuse, ClosureReflection reflection, ClosureReflection coat) |
| Closure | closure_eval (KernelGlobals &kg, ShadingData &sd, ClosureDiffuse diffuse, ClosureReflection reflection, ClosureReflection coat, ClosureRefraction refraction) |
| Closure | closure_add (Closure, Closure) |
| Closure | closure_mix (Closure, Closure, float) |
| float | ambient_occlusion_eval (const KernelGlobals &kg, const ShadingData &sd, float3 normal, float max_distance, const float inverted, const float sample_count) |
| void | raycast_eval (KernelGlobals &kg, const ShadingData &sd, float3 position, float3 direction, float max_distance, bool self_only, bool &is_hit, bool &self_hit, float &hit_distance, float3 &hit_position, float3 &hit_normal) |
| float3 | nodetree_displacement (KernelGlobals &kg, ShadingData &sd) |
| float4 | closure_to_rgba (KernelGlobals &kg, ShadingData &sd, Closure cl) |
| float | f0_from_ior (float eta) |
| float | F0_from_ior (float eta) |
| float | F0_from_f0 (float f0) |
| template<typename T> | |
| float3 | F_brdf_single_scatter (float3 f0, float3 f90, T lut) |
| template float3 | F_brdf_single_scatter< eevee::lut::GGXBrdfData > (float3, float3, eevee::lut::GGXBrdfData) |
| template float3 | F_brdf_single_scatter< eevee::lut::GGXBsdfData > (float3, float3, eevee::lut::GGXBsdfData) |
| template<typename T> | |
| float3 | F_brdf_multi_scatter (float3 f0, float3 f90, T lut) |
| template float3 | F_brdf_multi_scatter< eevee::lut::GGXBrdfData > (float3, float3, eevee::lut::GGXBrdfData) |
| template float3 | F_brdf_multi_scatter< eevee::lut::GGXBsdfData > (float3, float3, eevee::lut::GGXBsdfData) |
| void | brdf_f82_tint_lut (KernelGlobals &kg, float3 F0, float3 F82, float cos_theta, float roughness, bool do_multiscatter, float3 &reflectance) |
| void | bsdf_lut (KernelGlobals &kg, float3 F0, float3 F90, float3 transmission_tint, float cos_theta, float roughness, float ior, bool do_multiscatter, float3 &reflectance, float3 &transmittance) |
| float2 | bsdf_lut (KernelGlobals &kg, float cos_theta, float roughness, float ior, bool do_multiscatter) |
| float3 | brdf_lut (KernelGlobals &kg, float3 F0, float3 F90, float cos_theta, float roughness, bool do_multiscatter) |
| void | output_aov (KernelGlobals &kg, int2 texel, float4 color, float value, uint hash, float holdout, eObjectInfoFlag ob_flag) |
Mixed render resolution | |
Callbacks image texture sampling. | |
| float | texture_lod_bias_get (KernelGlobals &kg) |
| float | derivative_scale_get (KernelGlobals &kg) |
Fragment Displacement | |
Displacement happening in the fragment shader. Can be used in conjunction with a per vertex displacement. | |
| float3 | displacement_bump (KernelGlobals &kg, ShadingData &sd) |
| void | fragment_displacement (KernelGlobals &kg, ShadingData &sd) |
Coordinate implementations | |
Callbacks for the texture coordinate node. | |
| Coordinates | coordinate_impl (KernelGlobals &kg, const ShadingData &sd, float3 P, float3 N) |
Volume Attribute post | |
TODO(@fclem): These implementation details should concern the DRWContext and not be a fix on the engine side. But as of now, the engines are responsible for loading the attributes. | |
| float | attr_load_temperature_post (KernelGlobals &kg, float attr) |
| float4 | attr_load_color_post (KernelGlobals &kg, float4 attr) |
Uniform Attributes | |
TODO(@fclem): These implementation details should concern the DRWContext and not be a fix on the engine side. But as of now, the engines are responsible for loading the attributes. | |
| #define | LIGHT_ITER_BEGIN(light_index) |
| #define | LIGHT_ITER_END() |
| float4 | attr_load_uniform (KernelGlobals &kg, const ShadingData &sd, float4, const uint attr_hash) |
| float4 | node_attribute_layer_impl (KernelGlobals &kg, const uint attr_hash) |
| void | scene_time_uniforms (KernelGlobals &kg, float &seconds, float &frame) |
| void | light_iter_init (KernelGlobals &kg, const ShadingData &sd, eevee::light::VisibleLightIterator &iter) |
| bool | light_iter_next (KernelGlobals &kg, eevee::light::VisibleLightIterator &iter) |
| bool | light_iter_should_skip (KernelGlobals &kg, eevee::light::VisibleLightIterator &iter, float3 P) |
| void | node_light_info_impl (KernelGlobals &kg, const int light_index, float4 &color, float &power, float3 &position) |
| void | node_light_evaluation_common_impl (KernelGlobals &kg, int light_index, float3 position, float3 &direction, float &distance, float &mask) |
| template<bool use_diffuse> | |
| void | node_light_evaluation_impl (KernelGlobals &kg, const ShadingData &sd, int light_index, float3 position, float3 normal, float roughness, float &factor) |
| template void | node_light_evaluation_impl< true > (KernelGlobals &, const ShadingData &, int, float3, float3, float, float &) |
| template void | node_light_evaluation_impl< false > (KernelGlobals &, const ShadingData &, int, float3, float3, float, float &) |
| void | node_shadow_raycast_impl (KernelGlobals &kg, const ShadingData &sd, const int light_index, float3 position, float softness, float4 &color) |
| float4 | node_attribute_light_impl (KernelGlobals &kg, const int light_index, uint attr_hash) |
| bool | node_attribute_light_is_sun_impl (KernelGlobals &kg, const int light_index) |
| bool | node_attribute_light_is_point_impl (KernelGlobals &kg, const int light_index) |
| bool | node_attribute_light_is_spot_impl (KernelGlobals &kg, const int light_index) |
| bool | node_attribute_light_is_area_impl (KernelGlobals &kg, const int light_index) |
| float | node_attribute_light_cutoff_distance_impl (KernelGlobals &kg, const int light_index) |
| void | node_light_accumulation_impl (KernelGlobals &kg, ShadingData &sd, const int light_index, float3 diffuse_light, float3 diffuse_color, float3 glossy_light, float3 glossy_color, float3 transmission_light, float3 transmission_color, float weight, Closure &result) |
| #define LIGHT_ITER_BEGIN | ( | light_index | ) |
Definition at line 1093 of file eevee_nodetree_lib.bsl.hh.
Referenced by LIGHT_ITER_BEGIN().
| #define LIGHT_ITER_END | ( | ) |
Definition at line 1116 of file eevee_nodetree_lib.bsl.hh.
Referenced by LIGHT_ITER_END().
| float ambient_occlusion_eval | ( | const KernelGlobals & | kg, |
| const ShadingData & | sd, | ||
| float3 | normal, | ||
| float | max_distance, | ||
| const float | inverted, | ||
| const float | sample_count ) |
Definition at line 512 of file eevee_nodetree_lib.bsl.hh.
References ambient_occlusion_eval(), eevee::fast_gi::eval< float >(), UtilityTexture::fetch(), fract(), ShadingData::frag_co, draw::View::get(), KernelGlobals::hiz, eevee::HiZ::hiz_tx, inverted(), eevee::PipelineConstants::is_occupancy_pipe, noise(), ShadingData::P, KernelGlobals::pipe, ViewMatrices::point_world_to_view(), eevee::Uniform::raytrace_buf, eevee::Sampling::rng_3D_get(), KernelGlobals::sampling, saturate, static_branch, eevee::Uniform::uniform_buf, KernelGlobals::uniforms, eevee::PipelineConstants::use_ambient_occlusion, UTIL_BLUE_NOISE_LAYER, KernelGlobals::util_tx, and KernelGlobals::view.
Referenced by ambient_occlusion_eval(), ambient_occlusion_eval(), and node_ambient_occlusion().
| float4 attr_load_color_post | ( | KernelGlobals & | kg, |
| float4 | attr ) |
Definition at line 1010 of file eevee_nodetree_lib.bsl.hh.
References attr_load_color_post(), VolumeInfos::color_mul, draw::Volume::drw_volume, eevee::PipelineConstants::is_volume_pipe, KernelGlobals::pipe, safe_rcp(), static_branch, and KernelGlobals::volume.
Referenced by attr_load_color_post(), attr_load_color_post(), and node_attribute_color().
| float attr_load_temperature_post | ( | KernelGlobals & | kg, |
| float | attr ) |
Definition at line 999 of file eevee_nodetree_lib.bsl.hh.
References attr_load_temperature_post(), draw::Volume::drw_volume, eevee::PipelineConstants::is_volume_pipe, KernelGlobals::pipe, static_branch, VolumeInfos::temperature_bias, VolumeInfos::temperature_mul, and KernelGlobals::volume.
Referenced by attr_load_temperature_post(), attr_load_temperature_post(), and node_attribute_temperature().
| float4 attr_load_uniform | ( | KernelGlobals & | kg, |
| const ShadingData & | sd, | ||
| float4 | , | ||
| const uint | attr_hash ) |
Definition at line 1032 of file eevee_nodetree_lib.bsl.hh.
References attr_load_uniform(), draw::Attributes::get(), KernelGlobals::ob_attr, and KernelGlobals::object_infos_get().
Referenced by attr_load_uniform(), attr_load_uniform(), and node_attribute_uniform().
| void brdf_f82_tint_lut | ( | KernelGlobals & | kg, |
| float3 | F0, | ||
| float3 | F82, | ||
| float | cos_theta, | ||
| float | roughness, | ||
| bool | do_multiscatter, | ||
| float3 & | reflectance ) |
Definition at line 710 of file eevee_nodetree_lib.bsl.hh.
References b, brdf_f82_tint_lut(), cos_theta(), F_brdf_multi_scatter(), F_brdf_single_scatter(), eevee::PipelineConstants::is_occupancy_pipe, eevee::lut::GGXBrdfData::metal_bias, mix, KernelGlobals::pipe, eevee::lut::GGXBrdfData::sample_utility_tx(), static_branch, and KernelGlobals::util_tx.
Referenced by brdf_f82_tint_lut(), brdf_f82_tint_lut(), node_bsdf_metallic(), and openpbr_eval_metal().
| float3 brdf_lut | ( | KernelGlobals & | kg, |
| float3 | F0, | ||
| float3 | F90, | ||
| float | cos_theta, | ||
| float | roughness, | ||
| bool | do_multiscatter ) |
Definition at line 825 of file eevee_nodetree_lib.bsl.hh.
References brdf_lut(), cos_theta(), F_brdf_multi_scatter(), F_brdf_single_scatter(), eevee::PipelineConstants::is_occupancy_pipe, KernelGlobals::pipe, eevee::lut::GGXBrdfData::sample_utility_tx(), static_branch, and KernelGlobals::util_tx.
Referenced by brdf_lut(), brdf_lut(), bsdf_lut(), node_bsdf_glossy(), and node_eevee_specular().
| float2 bsdf_lut | ( | KernelGlobals & | kg, |
| float | cos_theta, | ||
| float | roughness, | ||
| float | ior, | ||
| bool | do_multiscatter ) |
Definition at line 806 of file eevee_nodetree_lib.bsl.hh.
References bsdf_lut(), cos_theta(), and F0_from_ior().
| void bsdf_lut | ( | KernelGlobals & | kg, |
| float3 | F0, | ||
| float3 | F90, | ||
| float3 | transmission_tint, | ||
| float | cos_theta, | ||
| float | roughness, | ||
| float | ior, | ||
| bool | do_multiscatter, | ||
| float3 & | reflectance, | ||
| float3 & | transmittance ) |
Definition at line 743 of file eevee_nodetree_lib.bsl.hh.
References all(), eevee::lut::GGXBsdfData::bias, brdf_lut(), bsdf_lut(), cos_theta(), equal, F0_from_f0(), f0_from_ior(), F_brdf_single_scatter(), eevee::PipelineConstants::is_occupancy_pipe, KernelGlobals::pipe, eevee::lut::GGXBrdfData::sample_utility_tx(), eevee::lut::GGXBsdfData::sample_utility_tx(), eevee::lut::GGXBtdfGt1Data::sample_utility_tx(), saturate, eevee::lut::GGXBsdfData::scale, scale(), static_branch, eevee::lut::GGXBsdfData::transmission_factor, eevee::lut::GGXBtdfGt1Data::transmission_factor, transmission_tint, and KernelGlobals::util_tx.
Referenced by bsdf_lut(), bsdf_lut(), bsdf_lut(), bsdf_lut(), node_bsdf_glass(), openpbr_eval_coat(), principled_eval_gloss(), and principled_eval_translucent().
Definition at line 503 of file eevee_nodetree_lib.bsl.hh.
References Closure, and closure_add().
Referenced by closure_add(), node_add_shader(), and node_eevee_specular().
Definition at line 254 of file eevee_nodetree_lib.bsl.hh.
References closure_base_copy(), closure_type_get(), and T.
Referenced by closure_base_copy(), closure_base_copy< ClosureDiffuse >(), closure_base_copy< ClosureReflection >(), closure_base_copy< ClosureRefraction >(), closure_base_copy< ClosureSubsurface >(), closure_base_copy< ClosureThinRefraction >(), closure_base_copy< ClosureTranslucent >(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), and closure_eval().
| template void closure_base_copy< ClosureDiffuse > | ( | ClosureUndetermined & | , |
| ClosureDiffuse | ) |
References closure_base_copy().
| template void closure_base_copy< ClosureReflection > | ( | ClosureUndetermined & | , |
| ClosureReflection | ) |
References closure_base_copy().
| template void closure_base_copy< ClosureRefraction > | ( | ClosureUndetermined & | , |
| ClosureRefraction | ) |
References closure_base_copy().
| template void closure_base_copy< ClosureSubsurface > | ( | ClosureUndetermined & | , |
| ClosureSubsurface | ) |
References closure_base_copy().
| template void closure_base_copy< ClosureThinRefraction > | ( | ClosureUndetermined & | , |
| ClosureThinRefraction | ) |
References closure_base_copy().
| template void closure_base_copy< ClosureTranslucent > | ( | ClosureUndetermined & | , |
| ClosureTranslucent | ) |
References closure_base_copy().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | , | ||
| ClosureHair | ) |
Definition at line 422 of file eevee_nodetree_lib.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | sd, | ||
| ClosureEmission | emission ) |
Definition at line 394 of file eevee_nodetree_lib.bsl.hh.
References Closure, closure_eval(), and ShadingData::emission.
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | sd, | ||
| ClosureTransparency | transparency ) |
Definition at line 400 of file eevee_nodetree_lib.bsl.hh.
References Closure, closure_eval(), ShadingData::holdout, and ShadingData::transmittance.
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | sd, | ||
| ClosureVolumeAbsorption | volume_absorption ) |
Definition at line 414 of file eevee_nodetree_lib.bsl.hh.
References Closure, closure_eval(), and ShadingData::volume_absorption.
| Closure closure_eval | ( | KernelGlobals & | , |
| ShadingData & | sd, | ||
| ClosureVolumeScatter | volume_scatter ) |
Definition at line 407 of file eevee_nodetree_lib.bsl.hh.
References Closure, closure_eval(), ShadingData::volume_anisotropy, and ShadingData::volume_scattering.
| Closure closure_eval | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| ClosureDiffuse | diffuse ) |
Definition at line 270 of file eevee_nodetree_lib.bsl.hh.
References Closure, closure_base_copy(), eevee::PipelineConstants::closure_bin_count, ShadingData::closure_bins, closure_eval(), closure_select(), KernelGlobals::pipe, static_branch, eevee::PipelineConstants::use_clearcoat, eevee::PipelineConstants::use_diffuse, and eevee::PipelineConstants::use_translucent.
Referenced by closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), closure_eval(), node_background(), node_bsdf_diffuse(), node_bsdf_glass(), node_bsdf_glossy(), node_bsdf_hair(), node_bsdf_hair_principled(), node_bsdf_metallic(), node_bsdf_ray_portal(), node_bsdf_refraction(), node_bsdf_sheen(), node_bsdf_toon(), node_bsdf_translucent(), node_bsdf_transparent(), node_eevee_specular(), node_emission(), node_holdout(), node_subsurface_scattering(), node_volume_absorption(), node_volume_coefficients(), node_volume_principled(), node_volume_scatter(), openpbr_eval_coat(), openpbr_eval_diffuse(), openpbr_eval_emission(), openpbr_eval_subsurface(), openpbr_eval_translucent(), openpbr_eval_transparency(), and principled_eval_gloss().
| Closure closure_eval | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| ClosureDiffuse | diffuse, | ||
| ClosureReflection | reflection ) |
Definition at line 440 of file eevee_nodetree_lib.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| ClosureDiffuse | diffuse, | ||
| ClosureReflection | reflection, | ||
| ClosureReflection | coat ) |
Definition at line 475 of file eevee_nodetree_lib.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| ClosureDiffuse | diffuse, | ||
| ClosureReflection | reflection, | ||
| ClosureReflection | coat, | ||
| ClosureRefraction | refraction ) |
Definition at line 488 of file eevee_nodetree_lib.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| ClosureReflection | reflection ) |
Definition at line 312 of file eevee_nodetree_lib.bsl.hh.
References assert, Closure, closure_base_copy(), eevee::PipelineConstants::closure_bin_count, ShadingData::closure_bins, closure_eval(), ShadingData::closure_reflection_bin, closure_select(), KernelGlobals::pipe, static_branch, eevee::PipelineConstants::use_clearcoat, and eevee::PipelineConstants::use_reflection.
| Closure closure_eval | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| ClosureReflection | reflection, | ||
| ClosureReflection | coat ) |
Definition at line 451 of file eevee_nodetree_lib.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| ClosureReflection | reflection, | ||
| ClosureRefraction | refraction ) |
Definition at line 429 of file eevee_nodetree_lib.bsl.hh.
References Closure, and closure_eval().
| Closure closure_eval | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| ClosureRefraction | refraction ) |
Definition at line 369 of file eevee_nodetree_lib.bsl.hh.
References Closure, closure_base_copy(), ShadingData::closure_bins, closure_eval(), closure_select(), KernelGlobals::pipe, static_branch, and eevee::PipelineConstants::use_refraction.
| Closure closure_eval | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| ClosureSubsurface | subsurface ) |
Definition at line 289 of file eevee_nodetree_lib.bsl.hh.
References Closure, closure_base_copy(), ShadingData::closure_bins, closure_eval(), closure_select(), KernelGlobals::pipe, static_branch, and eevee::PipelineConstants::use_sss.
| Closure closure_eval | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| ClosureThinRefraction | refraction ) |
Definition at line 382 of file eevee_nodetree_lib.bsl.hh.
References Closure, closure_base_copy(), ShadingData::closure_bins, closure_eval(), closure_select(), KernelGlobals::pipe, static_branch, and eevee::PipelineConstants::use_refraction.
| Closure closure_eval | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| ClosureTranslucent | translucent ) |
Definition at line 301 of file eevee_nodetree_lib.bsl.hh.
References Closure, closure_base_copy(), ShadingData::closure_bins, closure_eval(), closure_select(), KernelGlobals::pipe, static_branch, and eevee::PipelineConstants::use_translucent.
| Closure closure_eval | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| ClosureVolumeScatter | volume_scatter, | ||
| ClosureVolumeAbsorption | volume_absorption, | ||
| ClosureEmission | emission ) |
Definition at line 462 of file eevee_nodetree_lib.bsl.hh.
References Closure, and closure_eval().
Definition at line 507 of file eevee_nodetree_lib.bsl.hh.
References Closure, and closure_mix().
Referenced by closure_mix(), and node_mix_shader().
| float4 closure_to_rgba | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| Closure | cl ) |
Deferred lighting evaluation: Lighting is evaluated in a separate pass.
Outputs shading parameter per pixel using a randomized set of BSDFs. Some render-pass are written during this pass.
Definition at line 20 of file eevee_surf_deferred.bsl.hh.
References average(), Closure, closure_to_rgba(), closure_weights_reset(), ShadingData::emission, UtilityTexture::fetch(), fract(), ShadingData::frag_co, eevee::PipelineConstants::is_occupancy_pipe, noise(), KernelGlobals::pipe, resource_table, eevee::Sampling::rng_1D_get(), KernelGlobals::sampling, saturate, static_branch, ShadingData::transmittance, UTIL_BLUE_NOISE_LAYER, and KernelGlobals::util_tx.
Referenced by closure_to_rgba(), closure_to_rgba(), and node_shader_to_rgba().
| void closure_weights_reset | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| float | closure_rand ) |
Definition at line 228 of file eevee_nodetree_lib.bsl.hh.
References eevee::PipelineConstants::closure_bin_count, ShadingData::closure_bins, ShadingData::closure_reflection_bin, closure_weights_reset(), ShadingData::emission, ShadingData::holdout, ShadingData::light_accum, KernelGlobals::pipe, Reservoir< T >::reset(), static_branch, ShadingData::transmittance, eevee::PipelineConstants::use_lighting_nodes, ShadingData::volume_absorption, ShadingData::volume_anisotropy, and ShadingData::volume_scattering.
Referenced by closure_to_rgba(), closure_to_rgba_capture(), closure_to_rgba_depth(), closure_to_rgba_forward(), closure_to_rgba_hybrid(), closure_to_rgba_shadow(), closure_to_rgba_world(), and closure_weights_reset().
| Coordinates coordinate_impl | ( | KernelGlobals & | kg, |
| const ShadingData & | sd, | ||
| float3 | P, | ||
| float3 | N ) |
Definition at line 933 of file eevee_nodetree_lib.bsl.hh.
References Coordinates::camera, KernelGlobals::camera_matrices_get(), coordinate_impl(), Coordinates::incoming, eevee::PipelineConstants::is_world, N, P, KernelGlobals::pipe, ViewMatrices::point_world_to_screen(), ViewMatrices::point_world_to_view(), ViewMatrices::position(), Coordinates::reflect, reflect, Coordinates::screen, static_branch, eevee::Uniform::uniform_buf, KernelGlobals::uniforms, eevee::camera::uv_from_world(), KernelGlobals::view_matrices_get(), ViewMatrices::world_incident_vector(), and float3::z.
Referenced by coordinate_impl(), coordinate_impl(), node_bsdf_glass(), node_bsdf_glossy(), node_bsdf_metallic(), node_bsdf_principled(), node_eevee_specular(), node_fresnel(), node_geometry(), node_layer_weight(), and node_tex_coord().
| float derivative_scale_get | ( | KernelGlobals & | kg | ) |
Scale hardware derivatives depending on render resolution. This is because the distance between pixels increases as we lower the resolution. The hardware uses neighboring pixels to compute derivatives and thus the value increases as we lower the resolution. So we compensate by scaling them back to the expected amplitude at full resolution.
Definition at line 861 of file eevee_nodetree_lib.bsl.hh.
References derivative_scale_get(), float, eevee::Uniform::uniform_buf, and KernelGlobals::uniforms.
Referenced by derivative_scale_get(), derivative_scale_get(), displacement_bump(), node_bump(), and node_wireframe_screenspace().
| float3 displacement_bump | ( | KernelGlobals & | kg, |
| ShadingData & | sd ) |
Definition at line 879 of file eevee_nodetree_lib.bsl.hh.
References abs, cross, derivative_scale_get(), displacement_bump(), dot(), dPdx(), dPdy(), gpu_dfdx(), gpu_dfdy(), ShadingData::N, nodetree_displacement(), normalize, ShadingData::P, sign(), static_branch, float2::x, and float2::y.
Referenced by displacement_bump(), and fragment_displacement().
Definition at line 664 of file eevee_nodetree_lib.bsl.hh.
References F0_from_f0(), and square().
Referenced by bsdf_lut(), and F0_from_f0().
Simplified form of F_eta(eta, 1.0). This is the power reflection coefficient also denoted R. https://en.wikipedia.org/wiki/Fresnel_equations#Complex_amplitude_reflection_and_transmission_coefficients
Definition at line 660 of file eevee_nodetree_lib.bsl.hh.
References F0_from_ior(), f0_from_ior(), and square().
Referenced by bsdf_lut(), bsdf_microfacet_estimate_albedo(), bsdf_microfacet_setup_fresnel_generalized_schlick(), F0_from_ior(), F0_from_ior(), F0_from_ior(), generalized_schlick_fresnel(), generalized_schlick_setup(), openpbr_modulate_ior(), principled_eval_gloss(), principled_eval_translucent(), and svm_node_closure_bsdf().
Used for packing. This is the reflection coefficient also denoted r. https://en.wikipedia.org/wiki/Fresnel_equations#Complex_amplitude_reflection_and_transmission_coefficients
Definition at line 650 of file eevee_nodetree_lib.bsl.hh.
References f0_from_ior().
Referenced by bsdf_lut(), F0_from_ior(), f0_from_ior(), and f0_from_ior().
Definition at line 686 of file eevee_nodetree_lib.bsl.hh.
References F_brdf_multi_scatter(), F_brdf_single_scatter(), and T.
Referenced by brdf_f82_tint_lut(), brdf_lut(), F_brdf_multi_scatter(), and F_brdf_multi_scatter().
| template float3 F_brdf_multi_scatter< eevee::lut::GGXBrdfData > | ( | float3 | , |
| float3 | , | ||
| eevee::lut::GGXBrdfData | ) |
| template float3 F_brdf_multi_scatter< eevee::lut::GGXBsdfData > | ( | float3 | , |
| float3 | , | ||
| eevee::lut::GGXBsdfData | ) |
Return the fresnel color from a precomputed LUT value.
Definition at line 672 of file eevee_nodetree_lib.bsl.hh.
References F_brdf_single_scatter(), and T.
Referenced by brdf_f82_tint_lut(), brdf_lut(), bsdf_lut(), F_brdf_multi_scatter(), F_brdf_single_scatter(), and F_brdf_single_scatter().
| template float3 F_brdf_single_scatter< eevee::lut::GGXBrdfData > | ( | float3 | , |
| float3 | , | ||
| eevee::lut::GGXBrdfData | ) |
| template float3 F_brdf_single_scatter< eevee::lut::GGXBsdfData > | ( | float3 | , |
| float3 | , | ||
| eevee::lut::GGXBsdfData | ) |
| void fragment_displacement | ( | KernelGlobals & | kg, |
| ShadingData & | sd ) |
Definition at line 910 of file eevee_nodetree_lib.bsl.hh.
References displacement_bump(), and fragment_displacement().
Referenced by fragment_displacement(), eevee::surf_deferred(), eevee::surf_forward(), and eevee::surf_hybrid().
| void light_iter_init | ( | KernelGlobals & | kg, |
| const ShadingData & | sd, | ||
| eevee::light::VisibleLightIterator & | iter ) |
Definition at line 1055 of file eevee_nodetree_lib.bsl.hh.
References dot(), ViewMatrices::forward(), ShadingData::frag_co, eevee::light::VisibleLightIterator::init(), light_iter_init(), KernelGlobals::lrd, KernelGlobals::object_infos_get(), ShadingData::P, KernelGlobals::pipe, ViewMatrices::position(), receiver_light_set_get(), static_branch, eevee::PipelineConstants::use_lighting_nodes, and KernelGlobals::view_matrices_get().
Referenced by light_iter_init().
| bool light_iter_next | ( | KernelGlobals & | kg, |
| eevee::light::VisibleLightIterator & | iter ) |
Definition at line 1070 of file eevee_nodetree_lib.bsl.hh.
References light_iter_next(), KernelGlobals::lrd, eevee::light::VisibleLightIterator::next(), KernelGlobals::pipe, static_branch, and eevee::PipelineConstants::use_lighting_nodes.
Referenced by light_iter_next().
| bool light_iter_should_skip | ( | KernelGlobals & | kg, |
| eevee::light::VisibleLightIterator & | iter, | ||
| float3 | P ) |
Definition at line 1080 of file eevee_nodetree_lib.bsl.hh.
References light_iter_should_skip(), KernelGlobals::lrd, P, KernelGlobals::pipe, eevee::light::VisibleLightIterator::should_skip(), static_branch, and eevee::PipelineConstants::use_lighting_nodes.
Referenced by light_iter_should_skip().
| float4 node_attribute_layer_impl | ( | KernelGlobals & | kg, |
| const uint | attr_hash ) |
Definition at line 1041 of file eevee_nodetree_lib.bsl.hh.
References draw::ViewLayerAttributes::get(), node_attribute_layer_impl(), and KernelGlobals::vl_attr.
Referenced by attr_load_layer(), node_attribute_layer_impl(), and node_attribute_layer_impl().
| float node_attribute_light_cutoff_distance_impl | ( | KernelGlobals & | kg, |
| const int | light_index ) |
Definition at line 1293 of file eevee_nodetree_lib.bsl.hh.
References inversesqrt(), eevee::LightRenderData::light_buf, KernelGlobals::lrd, node_attribute_light_cutoff_distance_impl(), KernelGlobals::pipe, static_branch, and eevee::PipelineConstants::use_lighting_nodes.
Referenced by node_attribute_light_cutoff_distance(), node_attribute_light_cutoff_distance_impl(), and node_attribute_light_cutoff_distance_impl().
| float4 node_attribute_light_impl | ( | KernelGlobals & | kg, |
| const int | light_index, | ||
| uint | attr_hash ) |
Definition at line 1246 of file eevee_nodetree_lib.bsl.hh.
References node_attribute_light_impl(), resource_table, and static_branch.
Referenced by node_attribute_light(), node_attribute_light_impl(), and node_attribute_light_impl().
| bool node_attribute_light_is_area_impl | ( | KernelGlobals & | kg, |
| const int | light_index ) |
Definition at line 1284 of file eevee_nodetree_lib.bsl.hh.
References eevee::LightRenderData::light_buf, KernelGlobals::lrd, node_attribute_light_is_area_impl(), KernelGlobals::pipe, static_branch, and eevee::PipelineConstants::use_lighting_nodes.
Referenced by node_attribute_light_is_area(), node_attribute_light_is_area_impl(), and node_attribute_light_is_area_impl().
| bool node_attribute_light_is_point_impl | ( | KernelGlobals & | kg, |
| const int | light_index ) |
Definition at line 1266 of file eevee_nodetree_lib.bsl.hh.
References eevee::LightRenderData::light_buf, KernelGlobals::lrd, node_attribute_light_is_point_impl(), KernelGlobals::pipe, static_branch, and eevee::PipelineConstants::use_lighting_nodes.
Referenced by node_attribute_light_is_point(), node_attribute_light_is_point_impl(), and node_attribute_light_is_point_impl().
| bool node_attribute_light_is_spot_impl | ( | KernelGlobals & | kg, |
| const int | light_index ) |
Definition at line 1275 of file eevee_nodetree_lib.bsl.hh.
References eevee::LightRenderData::light_buf, KernelGlobals::lrd, node_attribute_light_is_spot_impl(), KernelGlobals::pipe, static_branch, and eevee::PipelineConstants::use_lighting_nodes.
Referenced by node_attribute_light_is_spot(), node_attribute_light_is_spot_impl(), and node_attribute_light_is_spot_impl().
| bool node_attribute_light_is_sun_impl | ( | KernelGlobals & | kg, |
| const int | light_index ) |
Definition at line 1257 of file eevee_nodetree_lib.bsl.hh.
References eevee::LightRenderData::light_buf, KernelGlobals::lrd, node_attribute_light_is_sun_impl(), KernelGlobals::pipe, static_branch, and eevee::PipelineConstants::use_lighting_nodes.
Referenced by node_attribute_light_is_sun(), node_attribute_light_is_sun_impl(), and node_attribute_light_is_sun_impl().
| void node_light_accumulation_impl | ( | KernelGlobals & | kg, |
| ShadingData & | sd, | ||
| const int | light_index, | ||
| float3 | diffuse_light, | ||
| float3 | diffuse_color, | ||
| float3 | glossy_light, | ||
| float3 | glossy_color, | ||
| float3 | transmission_light, | ||
| float3 | transmission_color, | ||
| float | weight, | ||
| Closure & | result ) |
Definition at line 1305 of file eevee_nodetree_lib.bsl.hh.
References Closure, LightAccumulation::diffuse_color, LightAccumulation::diffuse_light, LightAccumulation::glossy_color, LightAccumulation::glossy_light, ShadingData::light_accum, LightAccumulation::light_accumulation_count, eevee::LightRenderData::light_buf, KernelGlobals::lrd, node_light_accumulation_impl(), KernelGlobals::pipe, static_branch, LightAccumulation::transmission_color, LightAccumulation::transmission_light, and eevee::PipelineConstants::use_lighting_nodes.
Referenced by node_light_accumulation(), node_light_accumulation_impl(), and node_light_accumulation_impl().
| void node_light_evaluation_common_impl | ( | KernelGlobals & | kg, |
| int | light_index, | ||
| float3 | position, | ||
| float3 & | direction, | ||
| float & | distance, | ||
| float & | mask ) |
Definition at line 1139 of file eevee_nodetree_lib.bsl.hh.
References LightVector::dist, distance(), LightVector::get(), LightVector::L, light_attenuation_surface(), eevee::LightRenderData::light_buf, LIGHT_SUN, KernelGlobals::lrd, mask(), node_light_evaluation_common_impl(), KernelGlobals::pipe, position, static_branch, and eevee::PipelineConstants::use_lighting_nodes.
Referenced by node_light_evaluation_common(), node_light_evaluation_common_impl(), node_light_evaluation_common_impl(), node_light_evaluation_diffuse(), and node_light_evaluation_glossy().
| void node_light_evaluation_impl | ( | KernelGlobals & | kg, |
| const ShadingData & | sd, | ||
| int | light_index, | ||
| float3 | position, | ||
| float3 | normal, | ||
| float | roughness, | ||
| float & | factor ) |
Definition at line 1160 of file eevee_nodetree_lib.bsl.hh.
References dot(), eevee::ltc::evaluate(), LightShape::get(), LightVector::get(), eevee::LTCData::identity(), eevee::LightRenderData::light_buf, LIGHT_SUN, KernelGlobals::lrd, M_1_PI, node_light_evaluation_impl(), KernelGlobals::pipe, position, eevee::LTCData::sample_ltc_lut(), static_branch, eevee::PipelineConstants::use_lighting_nodes, KernelGlobals::util_tx, UtilityTexture::utility_tx, V, KernelGlobals::view_matrices_get(), and ViewMatrices::world_incident_vector().
Referenced by node_light_evaluation_diffuse(), node_light_evaluation_glossy(), node_light_evaluation_impl(), node_light_evaluation_impl(), node_light_evaluation_impl< false >(), and node_light_evaluation_impl< true >().
| template void node_light_evaluation_impl< false > | ( | KernelGlobals & | , |
| const ShadingData & | , | ||
| int | , | ||
| float3 | , | ||
| float3 | , | ||
| float | , | ||
| float & | ) |
References node_light_evaluation_impl().
| template void node_light_evaluation_impl< true > | ( | KernelGlobals & | , |
| const ShadingData & | , | ||
| int | , | ||
| float3 | , | ||
| float3 | , | ||
| float | , | ||
| float & | ) |
References node_light_evaluation_impl().
| void node_light_info_impl | ( | KernelGlobals & | kg, |
| const int | light_index, | ||
| float4 & | color, | ||
| float & | power, | ||
| float3 & | position ) |
Definition at line 1120 of file eevee_nodetree_lib.bsl.hh.
References draw::Model::get(), eevee::LightRenderData::light_buf, KernelGlobals::lrd, M_1_PI, KernelGlobals::model, ObjectMatrices::model, node_light_info_impl(), KernelGlobals::pipe, position, power(), static_branch, and eevee::PipelineConstants::use_lighting_nodes.
Referenced by node_light_info(), node_light_info_impl(), and node_light_info_impl().
| void node_shadow_raycast_impl | ( | KernelGlobals & | kg, |
| const ShadingData & | sd, | ||
| const int | light_index, | ||
| float3 | position, | ||
| float | softness, | ||
| float4 & | color ) |
Definition at line 1203 of file eevee_nodetree_lib.bsl.hh.
References ShadingData::frag_co, eevee::LightRenderData::light_buf, LIGHT_NO_SHADOW, LIGHT_SUN, KernelGlobals::lrd, ShadingData::N, ShadingData::Ng, node_shadow_raycast_impl(), KernelGlobals::object_infos_get(), KernelGlobals::pipe, position, eevee::shadow_eval(), ObjectInfos::shadow_terminator_geometry_offset, ObjectInfos::shadow_terminator_normal_offset, KernelGlobals::srd, static_branch, ShadingData::thickness, eevee::Uniform::uniform_buf, KernelGlobals::uniforms, and eevee::PipelineConstants::use_lighting_nodes.
Referenced by node_shadow_raycast(), node_shadow_raycast_impl(), and node_shadow_raycast_impl().
| float3 nodetree_displacement | ( | KernelGlobals & | kg, |
| ShadingData & | sd ) |
Definition at line 20 of file eevee_nodetree_frag_lib.bsl.hh.
References nodetree_displacement().
Referenced by displacement_bump(), eevee::geom_curves(), eevee::geom_mesh(), eevee::geom_pointcloud(), and nodetree_displacement().
| void output_aov | ( | KernelGlobals & | kg, |
| int2 | texel, | ||
| float4 | color, | ||
| float | value, | ||
| uint | hash, | ||
| float | holdout, | ||
| eObjectInfoFlag | ob_flag ) |
Definition at line 1341 of file eevee_nodetree_lib.bsl.hh.
References any(), equal, flag_test(), hash, OBJECT_HOLDOUT, output_aov(), KernelGlobals::pipe, KernelGlobals::renderpass_out, saturate, static_branch, eevee::RenderPassOutput::store_color(), eevee::RenderPassOutput::store_value(), eevee::Uniform::uniform_buf, KernelGlobals::uniforms, and eevee::PipelineConstants::use_aov_output.
Referenced by node_output_aov(), output_aov(), and output_aov().
| void raycast_eval | ( | KernelGlobals & | kg, |
| const ShadingData & | sd, | ||
| float3 | position, | ||
| float3 | direction, | ||
| float | max_distance, | ||
| bool | self_only, | ||
| bool & | is_hit, | ||
| bool & | self_hit, | ||
| float & | hit_distance, | ||
| float3 & | hit_position, | ||
| float3 & | hit_normal ) |
Definition at line 560 of file eevee_nodetree_lib.bsl.hh.
References abs, clip_ray(), ViewMatrices::depth_screen_to_view(), ViewMatrices::depth_view_to_screen(), distance(), floatBitsToUint, ShadingData::frag_co, ViewCullingData::frustum_planes, draw::View::get(), draw::ViewCulling::get(), random::interleaved_gradient(), normalize, KernelGlobals::pipe, eevee::Uniform::pipeline_buf, FrustumPlanes::planes, ViewMatrices::point_world_to_view(), position, KernelGlobals::raycast, raycast_eval(), eevee::Uniform::raytrace_buf, raytrace_screen_2(), KernelGlobals::resource_id_get(), eevee::Sampling::rng_1D_get(), KernelGlobals::sampling, static_branch, texelFetch(), texture(), textureSize(), uintBitsToFloat, KernelGlobals::uniforms, eevee::PipelineConstants::use_raycast, KernelGlobals::view, KernelGlobals::view_culling, and float3::z.
Referenced by node_raycast(), node_raycast_only_local(), raycast_eval(), and raycast_eval().
| void scene_time_uniforms | ( | KernelGlobals & | kg, |
| float & | seconds, | ||
| float & | frame ) |
Definition at line 1047 of file eevee_nodetree_lib.bsl.hh.
References scene_time_uniforms(), eevee::Uniform::uniform_buf, and KernelGlobals::uniforms.
Referenced by node_scene_time(), scene_time_uniforms(), and scene_time_uniforms().
| float texture_lod_bias_get | ( | KernelGlobals & | kg | ) |
Definition at line 849 of file eevee_nodetree_lib.bsl.hh.
References texture_lod_bias_get(), eevee::Uniform::uniform_buf, and KernelGlobals::uniforms.
Referenced by node_tex_image_linear(), texture_lod_bias_get(), and texture_lod_bias_get().