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

DirectionalLight.gltf model is modeled inside out #118

Open
droettger opened this issue May 3, 2024 · 0 comments
Open

DirectionalLight.gltf model is modeled inside out #118

droettger opened this issue May 3, 2024 · 0 comments

Comments

@droettger
Copy link

Visualizing the world space geometry or shading normals on the face-culled geometry of the DirectionalLight.gltf shows that they are pointing to the inside
(here: color = N * 0.5f + 0.5f;)
DirectionalLight_single_sided
Also visualizing the front-face condition showed that this is actually the front-face so vertex winding and normal on front-face is consistent.
Consequently, switching the three materials to double-sided shows the expected normal orientation of the outside of the spheres:
DirectionalLight_double_sided

This results in black rendering with a ray tracer because the inside of the sphere is hit and light is blocked by the face-culled geometry in front. Switching to double-sided materials produces the correct result.

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

1 participant