Skip to content

GLTFLoader: Handle zero ior edge case.#33119

Open
Mugen87 wants to merge 1 commit intomrdoob:devfrom
Mugen87:dev5
Open

GLTFLoader: Handle zero ior edge case.#33119
Mugen87 wants to merge 1 commit intomrdoob:devfrom
Mugen87:dev5

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Mar 4, 2026

Fixed #26167.

Description

The PR makes sure GLTFLoader handles the edge case when the material's IOR is zero.

As suggested in #26167 (comment), the value is mapped to a large IOR so the Fresnel term evaluates to approximately 1.0. This moves the implementation closer to what the glTF spec suggests:

https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_ior/README.md#specular-glossiness-backwards-compatibility-mode

@Mugen87 Mugen87 requested a review from donmccurdy March 4, 2026 15:48
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

Successfully merging this pull request may close these issues.

Transparent model does not render on some machines

1 participant