Implementing the KHR_materials_ior extension
The KHR_materials_ior extension for glTF 2.0 adds the concept of Index-of-Refraction (IOR) to materials, allowing for more accurate and realistic simulations of transparent objects. IOR is a key material property that dictates how light bends when it passes through a substance https://en.wikipedia.org/wiki/Refractive_index.
The IOR is a dimensionless number that shows the ratio of the speed of light in a vacuum to its speed in a particular medium. Different materials have different IOR values, which influence how light bends when it enters or exits the material. A higher IOR means more refraction. For instance, the IOR of air is nearly 1, water has an IOR of about 1.33, and glass has an IOR of around 1.5.
IOR parameters
The KHR_materials_ior extension adds a single property to the glTF material definition:
ior: A floating-point value representing the index-of-refraction of the material.
This value is used in conjunction with the KHR_materials_transmission...