|
Blender V5.3
|
Namespaces | |
| namespace | tiles |
Classes | |
| struct | Combine |
| struct | CombineFragOut |
| struct | CombineVertOut |
| struct | FragOut |
| struct | LightEval |
| struct | PlanarProbeEval |
| struct | VertOut |
Functions | |
| void | combine_vert (const int vert_id, float4 &out_position, CombineVertOut &v_out) |
| void | combine_frag (Combine &srt, RenderPassOutput &render_passes, const draw::View &views, const Uniform &uni, const HiZ &hiz, const ::gbuffer::Reader &reader, const float4 frag_co, const CombineVertOut &v_out, CombineFragOut &frag_out) |
| void | fullscreen_vert (const int vert_id, float4 &out_position, VertOut &v_out) |
Probe Capture Pipeline | |
| void | sphere_eval_frag (LightEvalIterator &lights, const draw::View &views, const draw::Infos &infos, const Sampling &sampling, const LightprobeVolumeRenderData &lightprobes, const Uniform &uni, const HiZ &hiz, const UtilityTexture &util_tx, const gbuffer::Reader &reader, const float4 frag_co, const VertOut v_out, FragOut &frag_out) |
| void | planar_eval_frag (PlanarProbeEval &, LightEvalIterator &lights, const draw::View &views, const draw::Infos &infos, const LightprobeRenderData &lightprobes, const Uniform &uni, const Sampling &sampling, const HiZ &hiz, const UtilityTexture &util_tx, const gbuffer::Reader &reader, const float4 frag_co, const VertOut v_out, FragOut &frag_out) |
Variables | |
| PipelineGraphic | light_single (fullscreen_vert, light_eval_frag, LightEvalConstants{ .light_closure_eval_count_reflect=1,.light_closure_eval_count_transmit=1,.light_closure_count_reflect=1,.light_closure_count_transmit=1, }, ShadowRenderConstants{ .shadow_random=true,.shadow_static_noise=false, }) |
| PipelineGraphic | light_double (fullscreen_vert, light_eval_frag, LightEvalConstants{ .light_closure_eval_count_reflect=2,.light_closure_eval_count_transmit=1,.light_closure_count_reflect=2,.light_closure_count_transmit=1, }, ShadowRenderConstants{ .shadow_random=true,.shadow_static_noise=false, }) |
| PipelineGraphic | light_triple (fullscreen_vert, light_eval_frag, LightEvalConstants{ .light_closure_eval_count_reflect=3,.light_closure_eval_count_transmit=1,.light_closure_count_reflect=3,.light_closure_count_transmit=1, }, ShadowRenderConstants{ .shadow_random=true,.shadow_static_noise=false, }) |
| PipelineGraphic | sphere_eval (fullscreen_vert, sphere_eval_frag, LightEvalConstants{ .light_closure_eval_count_reflect=1,.light_closure_eval_count_transmit=1,.light_closure_count_reflect=1,.light_closure_count_transmit=1, }, ShadowRenderConstants{ .shadow_random=true,.shadow_static_noise=true, }) |
| PipelineGraphic | planar_eval (fullscreen_vert, planar_eval_frag, PlanarProbeEval{ .legacy_sphere_probe_enable=true, }, LightEvalConstants{ .light_closure_eval_count_reflect=2,.light_closure_eval_count_transmit=2,.light_closure_count_reflect=2,.light_closure_count_transmit=2, }, ShadowRenderConstants{ .shadow_random=true,.shadow_static_noise=false, }) |
Deferred Pipeline | |
| PipelineGraphic | aov_clear (fullscreen_vert, aov_clear_frag, LightEvalConstants{.light_closure_count_reflect=1,.light_closure_count_transmit=1}) |
| void | aov_clear_frag (RenderPassOutput &render_passes, Uniform &uni, const float4 frag_co) |
| void | light_eval_frag (LightEval &srt, LightEvalIterator &lights, const draw::View &views, const draw::Infos &infos, const Uniform &uni, const LightprobeRenderData &lightprobes, const HiZ &hiz, const UtilityTexture &util_tx, const gbuffer::Reader &reader, RenderPassOutput &render_passes, const float4 frag_co, const VertOut v_out) |
Compute light objects lighting contribution using captured Gbuffer data.
| void eevee::deferred::aov_clear_frag | ( | RenderPassOutput & | render_passes, |
| Uniform & | uni, | ||
| const float4 | frag_co ) |
Clear AOVs for secondary deferred layers. The first opaque layer will always have AOV buffers cleared. However the subsequent layers (e.g. refraction) have to clear the result of the first layer for all the pixels they touch. Doing it inside the material shader proved to be a bottleneck for shader compilation. To avoid the overhead, we draw a full-screen triangle that will clear the AOVs for the pixel affected by the next layer using stencil test after the pre-pass.
Definition at line 57 of file eevee_deferred_eval.bsl.hh.
References aov_clear_frag(), frag_coord, and resource_table.
Referenced by aov_clear_frag().
| void eevee::deferred::combine_frag | ( | Combine & | srt, |
| RenderPassOutput & | render_passes, | ||
| const draw::View & | views, | ||
| const Uniform & | uni, | ||
| const HiZ & | hiz, | ||
| const ::gbuffer::Reader & | reader, | ||
| const float4 | frag_co, | ||
| const CombineVertOut & | v_out, | ||
| CombineFragOut & | frag_out ) |
Combine light passes to the combined color target and apply surface colors. This also fills the different render passes.
Definition at line 86 of file eevee_deferred_combine.bsl.hh.
References any(), assert, gbuffer::Header::bin_index_per_layer(), colorspace::brightness_clamp_max(), closure_apparent_roughness_get(), CLOSURE_BSDF_DIFFUSE_ID, CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID, CLOSURE_BSDF_THIN_GLASS_TRANSMISSION_ID, CLOSURE_BSDF_TRANSLUCENT_ID, CLOSURE_BSSRDF_BURLEY_ID, gbuffer::Header::closure_len(), CLOSURE_NONE_ID, combine_frag(), frag_coord, gbuffer::Layers::header, imageLoad(), imageStore(), in, isnan, gbuffer::Layers::layer, length(), out, P, ViewMatrices::point_screen_to_world(), reduce_add(), resource_table, colorspace::safe_color(), smoothstep(), square(), gbuffer::Layers::surface_N(), texelFetch(), unroll, and float3::z.
Referenced by combine_frag().
| void eevee::deferred::combine_vert | ( | const int | vert_id, |
| float4 & | out_position, | ||
| CombineVertOut & | v_out ) |
Definition at line 69 of file eevee_deferred_combine.bsl.hh.
References combine_vert(), fullscreen_vertex(), out, position, and vertex_id.
Referenced by combine_vert().
Definition at line 32 of file eevee_deferred_eval.bsl.hh.
References fullscreen_vert(), fullscreen_vertex(), out, position, reverse_z::transform(), and vertex_id.
Referenced by fullscreen_vert().
| void eevee::deferred::light_eval_frag | ( | LightEval & | srt, |
| LightEvalIterator & | lights, | ||
| const draw::View & | views, | ||
| const draw::Infos & | infos, | ||
| const Uniform & | uni, | ||
| const LightprobeRenderData & | lightprobes, | ||
| const HiZ & | hiz, | ||
| const UtilityTexture & | util_tx, | ||
| const gbuffer::Reader & | reader, | ||
| RenderPassOutput & | render_passes, | ||
| const float4 | frag_co, | ||
| const VertOut | v_out ) |
Definition at line 114 of file eevee_deferred_eval.bsl.hh.
References average(), gbuffer::Header::bin_index_per_layer(), spherical_harmonics::clamp_energy(), CLOSURE_BSSRDF_BURLEY_ID, gbuffer::Header::closure_len(), closure_light_new(), eevee::LightEvalData::constants, dot(), ViewMatrices::forward(), frag_coord, gbuffer::Header::geometry_normal(), gbuffer::Layers::header, in, eevee::light::init_from_reflect_ctx(), gbuffer::Layers::layer, eevee::LightEvalConstants::light_closure_eval_count_reflect, light_eval_frag(), eevee::light::EvalCtx< is_transmission >::Ng, eevee::light::EvalCtx< is_transmission >::P, P, ViewMatrices::point_screen_to_world(), ViewMatrices::position(), eevee::light::EvalCtx< is_transmission >::ray_count, eevee::light::EvalCtx< is_transmission >::ray_step_count, eevee::light::EvalCtx< is_transmission >::receiver_light_set, receiver_light_set_get(), resource_table, safe_rcp(), ObjectInfos::shadow_terminator_geometry_offset, ObjectInfos::shadow_terminator_normal_offset, eevee::light::EvalCtx< is_transmission >::stack, static_branch, subsurface_transmission(), gbuffer::Layers::surface_N(), eevee::light::EvalCtx< is_transmission >::terminator_geometry_offset, eevee::light::EvalCtx< is_transmission >::terminator_normal_offset, eevee::light::EvalCtx< is_transmission >::texel, texelFetch(), eevee::light::EvalCtx< is_transmission >::thickness, unroll, gbuffer::Header::use_object_id(), V, eevee::LightProbeSample::volume_irradiance, and ViewMatrices::world_incident_vector().
Referenced by light_eval_frag().
| void eevee::deferred::planar_eval_frag | ( | PlanarProbeEval & | , |
| LightEvalIterator & | lights, | ||
| const draw::View & | views, | ||
| const draw::Infos & | infos, | ||
| const LightprobeRenderData & | lightprobes, | ||
| const Uniform & | uni, | ||
| const Sampling & | sampling, | ||
| const HiZ & | hiz, | ||
| const UtilityTexture & | util_tx, | ||
| const gbuffer::Reader & | reader, | ||
| const float4 | frag_co, | ||
| const VertOut | v_out, | ||
| FragOut & | frag_out ) |
Definition at line 378 of file eevee_deferred_eval.bsl.hh.
References CLOSURE_BSDF_DIFFUSE_ID, CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID, CLOSURE_BSDF_THIN_GLASS_TRANSMISSION_ID, CLOSURE_BSDF_TRANSLUCENT_ID, CLOSURE_BSSRDF_BURLEY_ID, gbuffer::Header::closure_len(), closure_light_new(), CLOSURE_NONE_ID, dot(), SphericalHarmonicL1< T >::evaluate_lambert(), ViewMatrices::forward(), frag_coord, gbuffer::Header::geometry_normal(), gbuffer::Layers::header, in, eevee::light::init_from_reflect_ctx(), gbuffer::Layers::layer, eevee::light::EvalCtx< is_transmission >::Ng, out, eevee::light::EvalCtx< is_transmission >::P, P, planar_eval_frag(), ViewMatrices::point_screen_to_world(), ViewMatrices::position(), eevee::light::EvalCtx< is_transmission >::ray_count, eevee::light::EvalCtx< is_transmission >::ray_step_count, eevee::light::EvalCtx< is_transmission >::receiver_light_set, receiver_light_set_get(), reduce_add(), resource_table, eevee::LightprobeVolumeRenderData::sample_probe(), ObjectInfos::shadow_terminator_geometry_offset, ObjectInfos::shadow_terminator_normal_offset, square(), eevee::light::EvalCtx< is_transmission >::stack, gbuffer::Layers::surface_N(), eevee::light::EvalCtx< is_transmission >::terminator_geometry_offset, eevee::light::EvalCtx< is_transmission >::terminator_normal_offset, eevee::light::EvalCtx< is_transmission >::texel, texelFetch(), eevee::light::EvalCtx< is_transmission >::thickness, unroll, gbuffer::Header::use_object_id(), V, and ViewMatrices::world_incident_vector().
Referenced by planar_eval_frag().
| void eevee::deferred::sphere_eval_frag | ( | LightEvalIterator & | lights, |
| const draw::View & | views, | ||
| const draw::Infos & | infos, | ||
| const Sampling & | sampling, | ||
| const LightprobeVolumeRenderData & | lightprobes, | ||
| const Uniform & | uni, | ||
| const HiZ & | hiz, | ||
| const UtilityTexture & | util_tx, | ||
| const gbuffer::Reader & | reader, | ||
| const float4 | frag_co, | ||
| const VertOut | v_out, | ||
| FragOut & | frag_out ) |
Definition at line 261 of file eevee_deferred_eval.bsl.hh.
References CLOSURE_BSDF_DIFFUSE_ID, CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID, CLOSURE_BSDF_THIN_GLASS_TRANSMISSION_ID, CLOSURE_BSDF_TRANSLUCENT_ID, CLOSURE_BSSRDF_BURLEY_ID, gbuffer::Header::closure_len(), closure_light_new(), CLOSURE_NONE_ID, dot(), SphericalHarmonicL1< T >::evaluate_lambert(), ViewMatrices::forward(), frag_coord, gbuffer::Header::geometry_normal(), gbuffer::Layers::has_no_closure(), gbuffer::Layers::header, in, eevee::light::init_from_reflect_ctx(), gbuffer::Layers::layer, eevee::light::EvalCtx< is_transmission >::Ng, out, eevee::light::EvalCtx< is_transmission >::P, P, ViewMatrices::point_screen_to_world(), ViewMatrices::position(), eevee::light::EvalCtx< is_transmission >::ray_count, eevee::light::EvalCtx< is_transmission >::ray_step_count, eevee::light::EvalCtx< is_transmission >::receiver_light_set, receiver_light_set_get(), resource_table, ObjectInfos::shadow_terminator_geometry_offset, ObjectInfos::shadow_terminator_normal_offset, sphere_eval_frag(), square(), eevee::light::EvalCtx< is_transmission >::stack, gbuffer::Layers::surface_N(), eevee::light::EvalCtx< is_transmission >::terminator_geometry_offset, eevee::light::EvalCtx< is_transmission >::terminator_normal_offset, eevee::light::EvalCtx< is_transmission >::texel, texelFetch(), eevee::light::EvalCtx< is_transmission >::thickness, unroll, gbuffer::Header::use_object_id(), V, and ViewMatrices::world_incident_vector().
Referenced by sphere_eval_frag().
| PipelineGraphic eevee::deferred::aov_clear(fullscreen_vert, aov_clear_frag, LightEvalConstants{.light_closure_count_reflect=1,.light_closure_count_transmit=1}) | ( | fullscreen_vert | , |
| aov_clear_frag | , | ||
| LightEvalConstants{.light_closure_count_reflect=1,.light_closure_count_transmit=1} | ) |
| PipelineGraphic eevee::deferred::light_double(fullscreen_vert, light_eval_frag, LightEvalConstants{ .light_closure_eval_count_reflect=2,.light_closure_eval_count_transmit=1,.light_closure_count_reflect=2,.light_closure_count_transmit=1, }, ShadowRenderConstants{ .shadow_random=true,.shadow_static_noise=false, }) | ( | fullscreen_vert | , |
| light_eval_frag | , | ||
| LightEvalConstants{ .light_closure_eval_count_reflect=2,.light_closure_eval_count_transmit=1,.light_closure_count_reflect=2,.light_closure_count_transmit=1, } | , | ||
| ShadowRenderConstants{ .shadow_random=true,.shadow_static_noise=false, } | ) |
| PipelineGraphic eevee::deferred::light_single(fullscreen_vert, light_eval_frag, LightEvalConstants{ .light_closure_eval_count_reflect=1,.light_closure_eval_count_transmit=1,.light_closure_count_reflect=1,.light_closure_count_transmit=1, }, ShadowRenderConstants{ .shadow_random=true,.shadow_static_noise=false, }) | ( | fullscreen_vert | , |
| light_eval_frag | , | ||
| LightEvalConstants{ .light_closure_eval_count_reflect=1,.light_closure_eval_count_transmit=1,.light_closure_count_reflect=1,.light_closure_count_transmit=1, } | , | ||
| ShadowRenderConstants{ .shadow_random=true,.shadow_static_noise=false, } | ) |
| PipelineGraphic eevee::deferred::light_triple(fullscreen_vert, light_eval_frag, LightEvalConstants{ .light_closure_eval_count_reflect=3,.light_closure_eval_count_transmit=1,.light_closure_count_reflect=3,.light_closure_count_transmit=1, }, ShadowRenderConstants{ .shadow_random=true,.shadow_static_noise=false, }) | ( | fullscreen_vert | , |
| light_eval_frag | , | ||
| LightEvalConstants{ .light_closure_eval_count_reflect=3,.light_closure_eval_count_transmit=1,.light_closure_count_reflect=3,.light_closure_count_transmit=1, } | , | ||
| ShadowRenderConstants{ .shadow_random=true,.shadow_static_noise=false, } | ) |
| PipelineGraphic eevee::deferred::planar_eval(fullscreen_vert, planar_eval_frag, PlanarProbeEval{ .legacy_sphere_probe_enable=true, }, LightEvalConstants{ .light_closure_eval_count_reflect=2,.light_closure_eval_count_transmit=2,.light_closure_count_reflect=2,.light_closure_count_transmit=2, }, ShadowRenderConstants{ .shadow_random=true,.shadow_static_noise=false, }) | ( | fullscreen_vert | , |
| planar_eval_frag | , | ||
| PlanarProbeEval{ .legacy_sphere_probe_enable=true, } | , | ||
| LightEvalConstants{ .light_closure_eval_count_reflect=2,.light_closure_eval_count_transmit=2,.light_closure_count_reflect=2,.light_closure_count_transmit=2, } | , | ||
| ShadowRenderConstants{ .shadow_random=true,.shadow_static_noise=false, } | ) |
| PipelineGraphic eevee::deferred::sphere_eval(fullscreen_vert, sphere_eval_frag, LightEvalConstants{ .light_closure_eval_count_reflect=1,.light_closure_eval_count_transmit=1,.light_closure_count_reflect=1,.light_closure_count_transmit=1, }, ShadowRenderConstants{ .shadow_random=true, .shadow_static_noise=true, }) | ( | fullscreen_vert | , |
| sphere_eval_frag | , | ||
| LightEvalConstants{ .light_closure_eval_count_reflect=1,.light_closure_eval_count_transmit=1,.light_closure_count_reflect=1,.light_closure_count_transmit=1, } | , | ||
| ShadowRenderConstants{ .shadow_random=true,.shadow_static_noise=true, } | ) |