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

[glTF] Support double-sided materials #480

Open
footballhead opened this issue Jun 7, 2024 · 0 comments
Open

[glTF] Support double-sided materials #480

footballhead opened this issue Jun 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@footballhead
Copy link
Collaborator

All models loaded with scene::GltfLoader are assumed to be single-sided (back face culling is enabled). glTF supports double-sided materials. From 3.9.5:

When this value is true, back-face culling is disabled and double sided lighting is enabled. The back-face MUST have its normals reversed before the lighting equation is evaluated.

This would allow BigWheels to correctly render:

@footballhead footballhead added the enhancement New feature or request label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant