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

Shader material with alpha prepass transparency not working #59008

Closed
Hannyson opened this issue Mar 11, 2022 · 5 comments
Closed

Shader material with alpha prepass transparency not working #59008

Hannyson opened this issue Mar 11, 2022 · 5 comments

Comments

@Hannyson
Copy link

Godot version

4.0.alpha4

System information

Linux

Issue description

I created a shader material for a project with procedurally generated meshes, when I set the depth_prepass_alpha option in render_mode, the transparent parts of the displayed texture turn to black. With the others depth_ options, no problems. This depth_prepass_alpha option is what worked the best for my project when it was in 3.x versions.

Test Project : https://www.udrop.com/6pov/AlphaPrepassBug4.0.zip

Steps to reproduce

Create manually a shader with a transparent texture, a leaf for example. Set the render_mode option to depth_prepass_alpha.
https://www.udrop.com/6pov/AlphaPrepassBug4.0.zip

Minimal reproduction project

https://www.udrop.com/6pov/AlphaPrepassBug4.0.zip

@clayjohn clayjohn added this to the 4.0 milestone Mar 11, 2022
@Hannyson
Copy link
Author

Saw issue #59015, with depth_prepass_alpha AND depth_draw_* transparency works.

@Hannyson
Copy link
Author

I did had this problem with a project converted from 3.4, after recompiling the shaders, by creating new shaders nearly identical to ancients and assigning them to the materials I use, the problem disappears. Maybe this was just a migration problem.

@clayjohn
Copy link
Member

Can you still reproduce this issue in Beta13? There have been a lot of fixes to transparency that may have fixed this issue. I can't test as it seems your MRP is no longer available.

@clayjohn clayjohn modified the milestones: 4.0, 4.x Jan 19, 2023
@Hannyson
Copy link
Author

I haven't this problem anymore since a long time, I forgot to update this

@clayjohn
Copy link
Member

Wonderful, great to hear that things are working for you now!

@clayjohn clayjohn modified the milestones: 4.x, 4.0 Jan 20, 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

3 participants