Skip to content
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: Alpha transparency with GI disabled renders incorrectly when SDFGI is enabled #75848

Open
Tracked by #55327
atirut-w opened this issue Apr 9, 2023 · 2 comments

Comments

@atirut-w
Copy link
Contributor

atirut-w commented Apr 9, 2023

Godot version

v4.0.2.stable.official [7a0977c]

System information

Windows 11, Forward+, AMD Radeon RX 6700 XT

Issue description

I am not very sure how to describe this issue, but things lit by SDFGI seems to be visible through materials with alpha enabled applied onto a mesh instance with GI disabled. See video below.

2023-04-09.17-44-31.mp4

Steps to reproduce

  1. Create a mesh instance, disable GI and apply a material with alpha enabled onto it
  2. Put some stuff behind the mesh instance(other meshes, etc.)
  3. Enable SDFGI

Minimal reproduction project

Alpha problem.zip

@atirut-w
Copy link
Contributor Author

Replicated this issue on my laptop with Intel GPU:
image

@atirut-w atirut-w changed the title Alpha transparency renders incorrectly when SDFGI is enabled Alpha transparency with GI disabled renders incorrectly when SDFGI is enabled Apr 10, 2023
@Calinou
Copy link
Member

Calinou commented Apr 10, 2023

I can confirm this on 4.0.1 (Linux, GeForce RTX 4090 with NVIDIA 530.41.03). Enabling MSAA (which forces GI to render in a forward pass) doesn't resolve the issue.

What's interesting is that sorting is correct when using the Dynamic GI mode for the plane, which is supposed to act like Disabled when using SDFGI.

Setting the plane's Sorting Offset to -1.0 with the GI mode set to Disabled also results in this:

image

@Calinou Calinou changed the title Alpha transparency with GI disabled renders incorrectly when SDFGI is enabled Vulkan: Alpha transparency with GI disabled renders incorrectly when SDFGI is enabled Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants