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

[4.0] Fix alpha scissor support #58954

Merged
merged 1 commit into from
Mar 17, 2022
Merged

Conversation

Ansraer
Copy link
Contributor

@Ansraer Ansraer commented Mar 9, 2022

Fixes #58924 in master.

Apparently, the alpha scissor check was lost in the transition from gles3 to vulkan. In addition materials with alpha scissors were still using the default shadow material, which obviously resulted in wrong shadows.

@Ansraer
Copy link
Contributor Author

Ansraer commented Mar 11, 2022

Sorry about the repush, just realized that I forgot to remove an unnecessary pair of brackets.

Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the mobile renderer need the same changes?

@Ansraer
Copy link
Contributor Author

Ansraer commented Mar 11, 2022

Right, there are two vulkan renderers in master... I keep forgetting the mobile one every single time.
Probably yes, give me 3 minutes.
EDIT: might take a bit longer, need to figure out why it disables depth write for the opaque pass.

@akien-mga akien-mga requested review from clayjohn and a team March 16, 2022 11:08
Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Thanks for your patience.

@akien-mga akien-mga merged commit 9263e4e into godotengine:master Mar 17, 2022
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alpha Scissor does not cast shadows with depth_draw_opaque, even though manually discarding does
4 participants