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

doubleSided not respected #12

Closed
emackey opened this issue May 11, 2017 · 2 comments
Closed

doubleSided not respected #12

emackey opened this issue May 11, 2017 · 2 comments

Comments

@emackey
Copy link

emackey commented May 11, 2017

It appears the viewer is rendering all glTF materials with back-face culling enabled. A flag was added in the past few months to address this:

materials[n].doubleSided (schema)

You can test this with the same model used for testing in #10.

Note that the discussion surrounding this flag resulted in a decision that the rear-facing polygons should have flipped normal vectors (typically using gl_FrontFace to test). The schema description field mentions the normal vectors specifically.

@donmccurdy
Copy link
Owner

To be fixed soon: mrdoob/three.js#11296

Although I haven't looked into flipping normal vectors yet.

@emackey
Copy link
Author

emackey commented May 31, 2017

This appears to be fixed, thanks!

@emackey emackey closed this as completed May 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants