Remove the early exit to make sure the prepass textures are cleared (#7891)

# Objective

- Fixes #7888.

## Solution

- Remove the early exit to make sure the prepass textures are cleared.
This commit is contained in:
Edgar Geier 2023-03-04 12:29:11 +00:00
parent 0b794c8f1e
commit a213c8ac94

View file

@ -69,10 +69,6 @@ impl Node for PrepassNode {
return Ok(());
};
if opaque_prepass_phase.items.is_empty() && alpha_mask_prepass_phase.items.is_empty() {
return Ok(());
}
let mut color_attachments = vec![];
if let Some(view_normals_texture) = &view_prepass_textures.normal {
color_attachments.push(Some(RenderPassColorAttachment {