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

Separate culling state management from material state in GLES2 #29236

Merged
merged 1 commit into from
May 30, 2019

Conversation

clayjohn
Copy link
Member

Sets culling state separately from material and includes mirror property in culling operation.

This change is necessary because when an object is given a negative size the culling operation needs to be mirrored, however, GLES2 only updated the culling state when there was a change in material. So if two objects used the same material (e.g. the default SpatialMaterial) but one had a negative scale, the second one to be drawn would have culling flipped.

Fixes: #27900 and
Partly fixes: #26627 (includes a few unrelated issues), #25696 (still needs fix for when cull is disabled) and #26710 (still needs fix for when cull is disabled)

@clayjohn clayjohn requested a review from reduz as a code owner May 27, 2019 18:55
@clayjohn
Copy link
Member Author

@akien-mga Im gonna need some help with the ci on this one. Is the error something I could have caused?

@akien-mga
Copy link
Member

That's just a random timeout, I restarted the build job.

@akien-mga akien-mga added this to the 3.2 milestone May 28, 2019
@akien-mga akien-mga merged commit bac7e22 into godotengine:master May 30, 2019
@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.

GLES2 cull mode inverted (wheel) Strange/Wrong/Different behavior using VehicleBody and wheels
3 participants