Class MaterialIor
The dielectric BRDF of the metallic-roughness material in glTF uses a fixed value of 1.5 for the index of refraction. This is a good fit for many plastics and glass, but not for other materials like water or asphalt, sapphire or diamond. This extension allows users to set the index of refraction to a certain value.
Inherited Members
Namespace: GLTFast.Schema
Assembly: glTFast.dll
Syntax
[Serializable]
public class MaterialIor
Fields
defaultIndexOfRefraction
Default index of refraction. A good compromise for most opaque, dielectric materials.
Declaration
public const float defaultIndexOfRefraction = 1.5
Field Value
Type | Description |
---|---|
float |
See Also
ior
The index of refraction.
Declaration
public float ior
Field Value
Type | Description |
---|---|
float |