Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gltf-loader: disable backface culling if material is double-sided (#4270
) # Objective The [glTF spec](https://github.com/KhronosGroup/glTF/blob/8e798b02d254cea97659a333cfcb20875b62bdd4/specification/2.0/Specification.adoc#395-double-sided) the `doubleSided` has the following to say about the `doubleSided` boolean: > When this value is false, back-face culling is enabled, i.e., only front-facing triangles are rendered. > 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. ## Solution Disable backface culling when `doubleSided: true`.
- Loading branch information