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: Unity.Cloud.Gltfast.Objects
Assembly: Unity.Cloud.Gltfast.dll
Syntax
[MovedFrom(true, "GLTFast.Schema", "glTFast", null)]
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
Properties
Ior
The index of refraction.
Declaration
[JsonIgnore]
public float Ior { get; set; }
Property Value
| Type | Description |
|---|---|
| float |