Class PbrMetallicRoughnessBase
A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology.
Inherited Members
Namespace: GLTFast.Schema
Assembly: glTFast.dll
Syntax
[Serializable]
public abstract class PbrMetallicRoughnessBase
Fields
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
public float[] baseColorFactor
Field Value
Type | Description |
---|---|
float[] |
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
public float metallicFactor
Field Value
Type | Description |
---|---|
float |
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
public float roughnessFactor
Field Value
Type | Description |
---|---|
float |
Properties
BaseColor
Base color of the material in linear color space.
Declaration
public Color BaseColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
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
public abstract TextureInfoBase BaseColorTexture { get; }
Property Value
Type | Description |
---|---|
TextureInfoBase |
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
public abstract TextureInfoBase MetallicRoughnessTexture { get; }
Property Value
Type | Description |
---|---|
TextureInfoBase |