I want to blur the background when a ui window is open. In 3.x you can apply this simple shader to a ColorRect and done but this does not work in 4.0 The shader works but it only blurs the ui or blurs nothing, depending on the z index. It looks like SCREEN_TEXTURE never returns the actual texture I want (the 3D scene). Its probably just something that is now different in 4.0 but I dont know what.
https://github.com/godotengine/godot-demo-projects/blob/master/2d/screen_space_shaders/shaders/blur.shader
For some reasons the alpha of SCREEN_TEXTURE was 0 and that was the reason why the background blur didnt worked. Changing it to 255 solved the "problem" (?) for me. Is this expected?