Class GltfBuiltInShaderMaterialExporter
Converts Unity Materials that use a glTFast Built-In shader to glTF materials
Implements
Inherited Members
Namespace: GLTFast.Export
Assembly: glTFast.Export.dll
Syntax
public class GltfBuiltInShaderMaterialExporter : GltfMaterialExporter, IMaterialExport
Methods
GetAlphaCutoff(Material)
Returns that material's alpha cutoff threshold.
Declaration
protected override float GetAlphaCutoff(Material material)
Parameters
Type | Name | Description |
---|---|---|
Material | material | Unity material. |
Returns
Type | Description |
---|---|
float | Alpha cutoff threshold value. |
Overrides
See Also
GetAlphaMode(Material)
Extracts the glTF alpha mode from a Unity material.
Declaration
protected override MaterialBase.AlphaMode GetAlphaMode(Material material)
Parameters
Type | Name | Description |
---|---|---|
Material | material | Unity material. |
Returns
Type | Description |
---|---|
AlphaMode | glTF alpha mode. |
Overrides
See Also
IsDoubleSided(Material)
Indicates whether (back-face) culling should be disabled.
Declaration
protected override bool IsDoubleSided(Material material)
Parameters
Type | Name | Description |
---|---|---|
Material | material | Unity material. |
Returns
Type | Description |
---|---|
bool | True if material does not do back-face culling. False otherwise. |