EEVEE Next: Fix: Normal RenderPass viewport display flicker

The active display should always be rendered,
even if the current sample doesn't write to it.
This commit is contained in:
Miguel Pozo
2023-08-04 18:15:38 +02:00
parent 4395e0da93
commit 2f6af7a4b9

View File

@@ -655,6 +655,9 @@ void film_process_data(ivec2 texel_film, out vec4 out_color, out float out_depth
}
else {
out_depth = imageLoad(depth_img, texel_film).r;
if (film_buf.display_id != -1 && film_buf.display_id == film_buf.normal_id) {
out_color = imageLoad(color_accum_img, ivec3(texel_film, film_buf.display_id));
}
}
}