Godot Version
4.3
Question
Is there anything like the spatial shader POSITION built in for canvas_item shaders? I’m trying to make a transition that takes over the whole screen and it would be ideal just render in screen space.
I’m not using the Godot UI system so the usual fullscreen ColorRect won’t work.
You’d still need to cover the entire screen with something to do a full screen transition. It could be a sprite2d that covers the screen, though. Anyway in canvas item shaders I think you just use VERTEX
directly.
In a spatial shader you can write the POSITION in screen space directly, basically saying I want this shader to render fullscreen. I can also create a canvas item, move it, resize it, etc but I was hoping to avoid that. VERTEX is in local space of the item as far as I understand so it’s not what I’m looking for.
Well canvasitem shaders can’t affect things outside of the boundaries of the image the shader is on, so you’d need to cover the entire screen with something.