Class HighDefinitionMaterialExport
Implements
Inherited Members
Namespace: GLTFast.Export
Assembly: glTFast.Export.dll
Syntax
public class HighDefinitionMaterialExport : MaterialExportBase, IMaterialExport
Methods
ConvertMaterial(Material, out Material, IGltfWritable, ICodeLogger)
Converts a Unity material to a glTF material.
Declaration
public override bool ConvertMaterial(Material uMaterial, out Material material, IGltfWritable gltf, ICodeLogger logger)
Parameters
Type | Name | Description |
---|---|---|
Material | uMaterial | Source material |
Material | material | Resulting material |
IGltfWritable | gltf | Associated IGltfWriter. Is used for adding images and textures. |
ICodeLogger | logger | Logger used for reporting |
Returns
Type | Description |
---|---|
bool | True if no errors occured, false otherwise |
Overrides
GetUnlitColor(Material, out Color)
Returns the color of an unlit material
Declaration
protected override bool GetUnlitColor(Material uMaterial, out Color baseColor)
Parameters
Type | Name | Description |
---|---|---|
Material | uMaterial | Unity material |
Color | baseColor | Resulting unlit color |
Returns
Type | Description |
---|---|
bool | True if the unlit color was retrieved, false otherwise |