Collision Detection inside Viewport

Godot Version

4.4 stable

Question

I’m recreating this Space Shooter Game.
For collision detection I’m using Area2d’s with Collisionshapes.
This works great: _on_area_entered(..) is called when overlaps occur.
To add some special effects I need to store this scene in a texture/viewport so I can apply some shaders to it.
However when I put my scene inside a Viewport the collision detection stops working.
How do I resolve this?

With respect, I am a bit lost by what you mean by “store this scene in a texture/viewport”.

If you can show the code you are using that might become clearer. It might also highlight what is causing your issue.