-
-
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
Viewport background transparency not working with custom clear color in Mobile and Compatibility renderers #79778
Comments
would love to work on this as my first contribution!! But I have no idea where to start. Any suggestions would be helpful! |
This could also be related to the existing issue #72602 where having a sky environment makes the viewport background opaque instead of transparent. Could very well be the same issue as when rendering just having a custom color environment. Edit: Never mind, saw now that you had found this related issue already. But even if it's a separate issue, the fix might still fix both |
Fixing this for the Mobile renderer can be its own PR most likely, and will likely be easier than fixing it for the Compatibility renderer. Fixing this for the Mobile renderer will be a matter of comparing |
I made a PR that fixes the issue for the Mobile renderer. Turns out there was a change made to the Forward+ renderer that was never included in the Mobile renderer (perhaps because it was commented to have to do with subsurface scattering, not viewports), so making that change there fixed that part of the issue. I'm starting to think that I should separate the Compatibility renderer and Mobile renderer parts of this. I can make a new issue report for the Compatibility renderer part of this issue, move the Compatibility renderer part to #72602, or just leave it as is. What do people here think I should do? |
I would just leave this open until the Compatibility backend is fixed as well. |
I know which comments you're referring to. I looked at it and didn't mess with it as I didn't know why they were commented out or what they did And as clayjhon said I think you should leave this open till compatibility is fixed as well |
Godot version
4.1.1.stable, 4.2.dev [6588a4a]
System information
Godot v4.1.1.stable - Windows 10.0.19045 - Vulkan (Mobile) - dedicated NVIDIA GeForce GTX 1080 Ti (NVIDIA; 31.0.15.3640) - Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (12 Threads)
Issue description
This is related to #72602, but since this also affects the Mobile renderer, this is likely a separate issue.
Setting the "Transparent BG" setting on a viewport is supposed to always keep the background transparent. On the Forward+ renderer, this setting is respected for all Environment Background Modes . On both the Mobile and Compatibility renderers, using the "Clear Color" background mode works with the transparent background, but using a "Custom Color" background does not render it as transparent.
Using Custom Color:
Using Clear Color:
Steps to reproduce
Minimal reproduction project
SkyTest.zip
The text was updated successfully, but these errors were encountered: