Class MaterialExtensions
Material extensions.
Inherited Members
Namespace: Unity.Cloud.Gltfast.Objects
Assembly: Unity.Cloud.Gltfast.dll
Syntax
[MovedFrom(true, "GLTFast.Schema", "glTFast", null)]
public class MaterialExtensions : AdditionalPropertyContainer, IPropertyContainer, IReadOnlyPropertyContainer
Properties
Clearcoat
This extension defines a clear coating that can be layered on top of an existing glTF material definition.
Declaration
[JsonPropertyName("KHR_materials_clearcoat")]
public ClearCoat Clearcoat { get; set; }
Property Value
| Type | Description |
|---|---|
| ClearCoat |
See Also
IndexOfRefraction
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.
Declaration
[JsonPropertyName("KHR_materials_ior")]
public MaterialIor IndexOfRefraction { get; set; }
Property Value
| Type | Description |
|---|---|
| MaterialIor |
See Also
PbrSpecularGlossiness
This extension defines the specular-glossiness material model from Physically-Based Rendering (PBR).
Declaration
[JsonPropertyName("KHR_materials_pbrSpecularGlossiness")]
public PbrSpecularGlossiness PbrSpecularGlossiness { get; set; }
Property Value
| Type | Description |
|---|---|
| PbrSpecularGlossiness |
See Also
Sheen
This extension defines a sheen that can be layered on top of an existing glTF material definition. A sheen layer is a common technique used in Physically-Based Rendering to represent cloth and fabric materials, for example.
Declaration
[JsonPropertyName("KHR_materials_sheen")]
public Sheen Sheen { get; set; }
Property Value
| Type | Description |
|---|---|
| Sheen |
See Also
Specular
This extension allows configuring the specular reflection.
Declaration
[JsonPropertyName("KHR_materials_specular")]
public MaterialSpecular Specular { get; set; }
Property Value
| Type | Description |
|---|---|
| MaterialSpecular |
See Also
Transmission
Extension for optical transparency (transmission)
Declaration
[JsonPropertyName("KHR_materials_transmission")]
public Transmission Transmission { get; set; }
Property Value
| Type | Description |
|---|---|
| Transmission |
See Also
Unlit
This extension defines an unlit shading model for use in glTF 2.0 materials, as an alternative to the Physically Based Rendering (PBR) shading models provided by the core specification.
Declaration
[JsonPropertyName("KHR_materials_unlit")]
public MaterialUnlit Unlit { get; set; }
Property Value
| Type | Description |
|---|---|
| MaterialUnlit |