You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to display a ViewportTexture to a MeshInstance. The viewport has transparent background enabled, and the MeshInstance material's transparency is set to Alpha.
Expected result:
The texture's background is transparent. Actual result:
The texture's background is black.
Setting the blend mode to 'Add' sets the background to transparent, but the rest of the texture also gets slightly transparent. My assumption is that the ViewportTexture's alpha channel is not set correctly - even though the background is set to transparent - , which would explain why it the background is only transparent with additive blend mode.
Steps to reproduce
Create a PlaneMesh
Create a SubViewport
Set transparent background to the viewport
Add a 3D scene as child to the viewport
Set the albedo texture of the plane's material override to the viewport's texture
Setting the blend mode to 'Add' sets the background to transparent, but the rest of the texture also gets slightly transparent.
This is because the Add blend mode does not require an alpha channel to look transparent. Black pixels will be fully transparent, and white pixels will be fully opaque.
Godot version
4.0.dev (9539e4e)
System information
Ubuntu 18.04, Vulkan
Issue description
I'm trying to display a ViewportTexture to a MeshInstance. The viewport has transparent background enabled, and the MeshInstance material's transparency is set to Alpha.
Expected result:
The texture's background is transparent.
Actual result:
The texture's background is black.
Setting the blend mode to 'Add' sets the background to transparent, but the rest of the texture also gets slightly transparent. My assumption is that the ViewportTexture's alpha channel is not set correctly - even though the background is set to transparent - , which would explain why it the background is only transparent with additive blend mode.
Steps to reproduce
Minimal reproduction project
minimal.zip
The text was updated successfully, but these errors were encountered: