Skip to content

Conversation

@MiiBond
Copy link
Contributor

@MiiBond MiiBond commented Sep 25, 2025

This adds an IOR uniform to the coat layer.

"default": 1.5,
"oneOf": [
{
"minimum": 0.0,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how the base layer IOR extension is defined but, to be honest, I don't quite understand this. What's with the minimum: 0 and maximum 0?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The base IOR extension allows (ior == 0.0) || (ior >= 1.0). The zero is a special case to support legacy content, see the extension spec for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PBR Physically Based Rendering

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants