Nested viewportContatiners and postProcessing with multiple passes.

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

Kind of new to godot, transitioning from unity.

I set up my scene like described
here: and am using two shader passes (both canvas_items) to create the finial image.
The first is generating the image and is using SCREEN_PIXEL_SIZE so that it dosn’t stratch when the aspect ratio changes.

In the second i wanted to write a custom AA solution but when i just read the texture and display it its all pixelated.

I dont understand how the ViewportContainer size parameters function.
When i only had one i had to set it to x = 667 and y = 117.

I just want the size of both viwports to be the screen size.
In Project settings i set the window parameters to:
width = 1920
height = 1080
stretch/mode = 2d
aspect = ignore