-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vulkan: Sky not blurred by textureLod shader #61969
Comments
cc @clayjohn |
Looks like it is caused by #61109 CC @Chaosus and @BastiaanOlij The BackBuffer somehow ends up with an alpha of A temporary workaround until this bug is fixed is to ignore the alpha channel in your shader. i.e. add |
I don't know yet how to fix this bug but my intuition say me that #61109 is correct and the problem is somewhere else (it only make it visible). |
The trouble is that during the main rendering pass, we allow writing to the alpha channel of the backbuffer texture It is just ignored later on if transparent background is disabled. We had the same issue in the 3.x branch and I ended up fixing by adding an The other solution is to do a comprehensive audit of our alpha rendering pass and ensure that alpha is not written to when transparent background is disabled |
This is still a problem in RC3. We need to disable copying the alpha channel of the 3D buffer to the 2D buffer when the viewport is not transparent |
Godot version
4.0.a9
System information
Windows 10, NVidia 2070 Super, Vulkan
Issue description
When blurring the screen with a textureLod shader I noticed the sky wasn't blurring with the rest of the meshes in my scene as of alpha 9.
The attached projects works as expected in alpha 8, but not in alpha 9.
Steps to reproduce
Add a world environment and camera to a scene, point the camera at a mesh so the background environment is visible.
Add a TextureRect that covers the screen and add a shader that uses the textureLod function to blur the screen.
Minimal reproduction project
BrokenBlur.zip
The text was updated successfully, but these errors were encountered: