Class PbrMetallicRoughness
A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology.
Inherited Members
Namespace: Unity.Cloud.Gltfast.Objects
Assembly: Unity.Cloud.Gltfast.dll
Syntax
[MovedFrom(true, "GLTFast.Schema", "glTFast", null)]
public class PbrMetallicRoughness
Properties
AdditionalProperties
Additional properties on glTF JSON objects. Those properties may have been added by a new, unsupported version of the glTF specification. For extending glTF, please use extensions or extras instead.
Declaration
[JsonIgnore]
public ReadOnlyProperties AdditionalProperties { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyProperties |
BaseColorFactor
The RGBA components of the base color of the material. The fourth component (A) is the opacity of the material. These values are linear.
Declaration
[JsonIgnore]
public ColorAlpha BaseColorFactor { get; set; }
Property Value
| Type | Description |
|---|---|
| ColorAlpha |
BaseColorTexture
The base color texture. This texture contains RGB(A) components in sRGB color space. The first three components (RGB) specify the base color of the material. If the fourth component (A) is present, it represents the opacity of the material. Otherwise, an opacity of 1.0 is assumed.
Declaration
[JsonPropertyName("baseColorTexture")]
public TextureInfo BaseColorTexture { get; set; }
Property Value
| Type | Description |
|---|---|
| TextureInfo |
Extensions
JSON object with extension-specific objects.
Declaration
[JsonPropertyName("extensions")]
public PbrMetallicRoughnessExtensions Extensions { get; set; }
Property Value
| Type | Description |
|---|---|
| PbrMetallicRoughnessExtensions |
See Also
Extras
Application-specific data.
Declaration
[JsonPropertyName("extras")]
[JsonConverter(typeof(ExtrasConverter))]
public ExtrasContainer Extras { get; set; }
Property Value
| Type | Description |
|---|---|
| ExtrasContainer |
See Also
MetallicFactor
The metalness of the material. A value of 1.0 means the material is a metal. A value of 0.0 means the material is a dielectric. Values in between are for blending between metals and dielectrics such as dirty metallic surfaces. This value is linear.
Declaration
[JsonIgnore]
public float MetallicFactor { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MetallicRoughnessTexture
The metallic-roughness texture has two components. The first component (R) contains the metallic-ness of the material. The second component (G) contains the roughness of the material. These values are linear. If the third component (B) and/or the fourth component (A) are present, they are ignored.
Declaration
[JsonPropertyName("metallicRoughnessTexture")]
public TextureInfo MetallicRoughnessTexture { get; set; }
Property Value
| Type | Description |
|---|---|
| TextureInfo |
RoughnessFactor
The roughness of the material. A value of 1.0 means the material is completely rough. A value of 0.0 means the material is completely smooth. This value is linear.
Declaration
[JsonIgnore]
public float RoughnessFactor { get; set; }
Property Value
| Type | Description |
|---|---|
| float |