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 scissor/test material has pixel Z-order issues #56008

Closed
Tracked by #56333
Zylann opened this issue Dec 17, 2021 · 1 comment
Closed
Tracked by #56333

Vulkan: Alpha scissor/test material has pixel Z-order issues #56008

Zylann opened this issue Dec 17, 2021 · 1 comment

Comments

@Zylann
Copy link
Contributor

Zylann commented Dec 17, 2021

Godot version

4.0 ed395c6

System information

Windows 10 64 bits GLES3 GeForce GTX 1060 6GB/PCIe/SSE2

Issue description

When I use an alpha clip material for foliage, I expect it to behave like an opaque material, going through the opaque rendering pass, so it should not have Z-ordering issues in its pixels. However it looks like it does have that typical issue:
image

Steps to reproduce

  1. Create a mesh made of two intersecting quads (or make two separate quads), typical setup for classic grass
  2. Create a new StandardMaterial3D with transparency set to Alpha Clip and an albedo texture.
  3. Assign the material to the mesh instances.
  4. Observe they completely disappear with Vulkan errors. I assume that's a different issue. Close the scene and reopen it. Observe the clipping issue.

Minimal reproduction project

AlphaClip.zip

@Chaosus Chaosus added this to the 4.0 milestone Dec 17, 2021
@Calinou Calinou changed the title Alpha clip material has pixel Z-order issues Vulkan: Alpha clip material has pixel Z-order issues Dec 17, 2021
@Calinou Calinou changed the title Vulkan: Alpha clip material has pixel Z-order issues Vulkan: Alpha scissor/test material has pixel Z-order issues Dec 17, 2021
@TokisanGames
Copy link
Contributor

The MRP can no longer be opened in Alpha13. However Alpha Scissors no longer has this issue with z-order. There are other z-order issues in the pipeline and I'll open another ticket, but it's no longer present here.

image

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

5 participants