Class MaterialExportBase
Converts a Unity Material into a glTF material
Implements
Inherited Members
Namespace: GLTFast.Export
Assembly: solution.dll
Syntax
public abstract class MaterialExportBase : IMaterialExport
Fields
| Name | Description |
|---|---|
| BaseColorProperty | _BaseColor shader property identifier |
| ColorProperty | _Color shader property identifier |
| CutoffProperty | _Cutoff shader property identifier |
| MainTexProperty | _MainTex shader property identifier |
| MetallicProperty | _Metallic shader property identifier |
| SmoothnessProperty | _Smoothness shader property identifier |
Methods
| Name | Description |
|---|---|
| AddImageExport(IGltfWritable, ImageExportBase, out int) | Adds an ImageExport to the glTF. No conversions or channel swizzling |
| ConvertMaterial(Material, out Material, IGltfWritable, ICodeLogger) | Converts a Unity material into a glTF material |
| ExportNormalTextureInfo(Texture, Material, IGltfWritable, int) | Export a normal texture from Unity to glTF. |
| ExportTextureInfo(Texture, IGltfWritable, ImageFormat) | Export a Unity texture to a glTF. |
| ExportTextureTransform(TextureInfoBase, Material, int, IGltfWritable) | Calculates a texture's transform and adds a KHR_texture_transform glTF extension, if required |
| ExportUnlit(Material, Material, int, IGltfWritable, ICodeLogger) | Converts an unlit Unity material into a glTF material |
| GetUnlitColor(Material, out Color) | Returns the color of an unlit material |
| IsDoubleSided(Material, int) | Retrieves whether material is double-sided. |
| IsUnlit(Material) | Retrieves whether material is unlit |
| SetAlphaModeAndCutoff(Material, Material) | Applies alpha mode and cutoff |