Hi, I am working on a screen space shader (below). On my Spatial scene, I've added ColorRect node, set its Layout to "Full Rect" and then applied this 2D shader to it to act as a "filter" to the 3D view. However, to edit the shader the editor seems to force the 2D tab, meaning I can't preview the effect in the 3D tab.
Is it possible to view the 3D screen in the editor with the screen shader applied? (ie view the 2D nodes overlaid on the 3D nodes)
shader_type canvas_item;
uniform sampler2D noise;
uniform float brightness = 1.0;
uniform float contrast = 1.0;
uniform float saturation = 0.1;
void fragment() {
vec3 c = textureLod(SCREEN_TEXTURE, SCREEN_UV, 0.0).rgb;
c.rgb = mix(vec3(0.0), c.rgb, brightness);
c.rgb = mix(vec3(0.5), c.rgb, contrast);
c.rgb = mix(vec3(dot(vec3(1.0), c.rgb) * 0.33333), c.rgb, saturation);
COLOR.rgb = c;
}