From 48382cc39b73b6c3317637c77862a725de310ce1 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Thu, 21 Nov 2024 12:23:45 -0500 Subject: Thu Nov 21 12:23:45 PM EST 2024 (Introduced Defferred Rendering/Shading Threshold) --- src/nodes.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nodes.rs') diff --git a/src/nodes.rs b/src/nodes.rs index 22ca8d3..1c750c7 100644 --- a/src/nodes.rs +++ b/src/nodes.rs @@ -57,6 +57,11 @@ impl ViewNode for OutlineRenderNode { return Ok(()); }; + let Some(deferred_buffer_view) = view_prepass_textures.deferred_view() else { + error!("Failed to get deferred buffer view"); + return Ok(()); + }; + let post_process = view_target.post_process_write(); let bind_group = render_context.render_device().create_bind_group( @@ -67,6 +72,7 @@ impl ViewNode for OutlineRenderNode { &render_pipeline.screen_sampler, normal_buffer_view, &render_pipeline.normal_sampler, + deferred_buffer_view, uniform_binding, )), ); -- cgit v1.2.3