[BUG] IOR is not preserved when using Scene.ToGltf2()
PassiveModding opened this issue · 1 comments
PassiveModding commented
Describe the bug
IOR values are not transferred when running Scene.ToGltf2()
This happens because the value of the field is set in
happens before extensions are cleared for specific shader styles.
To Reproduce
- Use Example1 project.
- Set either material's IndexOfRefraction to a non-default value
- Run Example1 project
- Check output file for IOR extension
please complete the following information:
- OS: Windows
- SharpGLTF Version 1.0.1
Potential solutions
- Include MaterialIOR as a supported extension on PBRMetallicRoughness
- Move the assignment to after shaderstyle is set
vpenades commented
thanks, I'll look into it