Class MaterialBase<TExtensions, TNormalTextureInfo, TOcclusionTextureInfo, TPbrMetallicRoughness, TTextureInfo, TTextureInfoExtensions>
The material appearance of a primitive.
Inheritance
Inherited Members
Namespace: GLTFast.Schema
Assembly: solution.dll
Syntax
[Serializable]
public abstract class MaterialBase<TExtensions, TNormalTextureInfo, TOcclusionTextureInfo, TPbrMetallicRoughness, TTextureInfo, TTextureInfoExtensions> : MaterialBase where TExtensions : MaterialExtensions where TNormalTextureInfo : NormalTextureInfoBase where TOcclusionTextureInfo : OcclusionTextureInfoBase where TPbrMetallicRoughness : PbrMetallicRoughnessBase where TTextureInfo : TextureInfoBase where TTextureInfoExtensions : TextureInfoExtensions
Type Parameters
| Name | Description |
|---|---|
| TExtensions | Material extensions type |
| TNormalTextureInfo | normalTextureInfo type |
| TOcclusionTextureInfo | occlusionTextureInfo type |
| TPbrMetallicRoughness | PBR Metallic Roughness type |
| TTextureInfo | textureInfo type |
| TTextureInfoExtensions | textureInfo extensions type |
Fields
| Name | Description |
|---|---|
| emissiveTexture | The emissive map controls the color and intensity of the light being emitted by the material. This texture contains RGB components in sRGB color space. If a fourth component (A) is present, it is ignored. |
| extensions | Material extensions. |
| normalTexture | A tangent space normal map. Each texel represents the XYZ components of a normal vector in tangent space. |
| occlusionTexture | The occlusion map is a greyscale texture, with white indicating areas that should receive full indirect lighting and black indicating no indirect lighting. |
| pbrMetallicRoughness | A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology. |
Properties
| Name | Description |
|---|---|
| EmissiveTexture | The emissive map controls the color and intensity of the light being emitted by the material. This texture contains RGB components in sRGB color space. If a fourth component (A) is present, it is ignored. |
| Extensions | Material extensions. |
| NormalTexture | A tangent space normal map. Each texel represents the XYZ components of a normal vector in tangent space. |
| OcclusionTexture | The occlusion map is a greyscale texture, with white indicating areas that should receive full indirect lighting and black indicating no indirect lighting. |
| PbrMetallicRoughness | A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology. |