Class MaterialBase
The material appearance of a primitive.
Inherited Members
Namespace: GLTFast.Schema
Assembly: solution.dll
Syntax
[Serializable]
public abstract class MaterialBase : NamedObject
Fields
Name | Description |
---|---|
alphaCutoff | Specifies the cutoff threshold when in |
alphaMode | The material's alpha rendering mode enumeration specifying the interpretation of the
alpha value of the main factor and texture. In |
doubleSided | Specifies whether the material is double sided. When this value is false, back-face culling is enabled. When this value is true, back-face culling is disabled and double sided lighting is enabled. The back-face must have its normals reversed before the lighting equation is evaluated. |
emissiveFactor | The RGB components of the emissive color of the material. If an emissiveTexture is specified, this value is multiplied with the texel values. |
Properties
Name | Description |
---|---|
Emissive | Emissive color of the material. |
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. |
RequiresNormals | True if the material requires the mesh to have normals. |
RequiresTangents | True if the material requires the mesh to have tangents. |
Methods
Name | Description |
---|---|
GetAlphaMode() | MaterialBase.AlphaMode typed and cached getter for alphaMode string. |
SetAlphaMode(AlphaMode) | MaterialBase.AlphaMode typed setter for alphaMode string. |