Fix: EEVEE: Flickering display of position pass
This is because the non-update branch in the display shader was not updated to support the position pass.
This commit is contained in:
@@ -701,9 +701,15 @@ void film_process_data(int2 texel_film, out float4 out_color, out float out_dept
|
||||
}
|
||||
else {
|
||||
out_depth = imageLoadFast(depth_img, texel_film).r;
|
||||
if (display_id != -1 && display_id == normal_id) {
|
||||
if (display_id == -1) {
|
||||
/* Noop. */
|
||||
}
|
||||
else if (display_id == normal_id) {
|
||||
out_color = imageLoadFast(color_accum_img, int3(texel_film, display_id));
|
||||
}
|
||||
else if (display_id == uniform_buf.film.position_id) {
|
||||
out_color = imageLoadFast(color_accum_img, int3(texel_film, uniform_buf.film.position_id));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user