google / google/bigwheels

[glTF] Support double-sided materials

Open
#480 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
107
Forks
42
PR merge metrics
No merged PRs in 30d

Description

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](https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#double-sided):

> 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:

- [TextureCoordinateTest](https://github.com/KhronosGroup/glTF-Sample-Assets/tree/main/Models/TextureCoordinateTest/glTF-Embedded)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.