Multi pass advanced post-processing

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Skunky

I have implemented a post processing shader in my project using this documentation and im wondering how i would be able to implement multi pass post-processing with that method.
So far ive tried to just use multiple rects, but sadly the first shader just gets overwritten, since godot only writes once into the SCREEN_TEXTURE.
I am using this method instead of the viewport one since i need to get access to the DEPTH_TEXTURE in multiple shaders.

I am now wondering how i could implement multi pass post-processing in 3D while still being able to access the DEPTH_TEXTURE?

Have you tried using a BackBufferCopy?

skysphr | 2021-09-21 00:51

:bust_in_silhouette: Reply From: Calinou

Multi-pass post-processing is not supported yet: Add proper and complete support for multi-pass shaders · Issue #496 · godotengine/godot-proposals · GitHub

Given the implementation complexity, it’s unlikely to be implemented in time for 4.0 either.