Class LitMaterialExport
Converts URP/HDRP Lit shader based materials to glTF materials
Implements
Inherited Members
Namespace: GLTFast.Export
Assembly: glTFast.Export.dll
Syntax
public sealed class LitMaterialExport : StandardMaterialExportBase, IMaterialExport
Methods
GetSmoothnessProperty(bool, bool)
Retrieves the smoothness property ID for the source material's smoothness value.
Declaration
protected override int GetSmoothnessProperty(bool sourceAlbedoAlpha, bool hasMetallicGlossinessMap)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | sourceAlbedoAlpha | True when the smoothness source is the Albedo map's alpha channel. |
| bool | hasMetallicGlossinessMap | True when a metallic-glossiness map is assigned to the source material. |
Returns
| Type | Description |
|---|---|
| int | The property ID for the smoothness value property in use. |
Overrides
HasMetallicGlossMap(Material)
Detects whether a metallic-glossiness map is assigned to the source material.
Declaration
protected override bool HasMetallicGlossMap(Material uMaterial)
Parameters
| Type | Name | Description |
|---|---|---|
| Material | uMaterial | Unity source material. |
Returns
| Type | Description |
|---|---|
| bool | True if the material has a metallic-glossiness map assigned, false otherwise. |
Overrides
IsPbrMetallicRoughness(Material)
Detects whether the source material should be exported as a PBR Metallic-Roughness material.
Declaration
protected override bool IsPbrMetallicRoughness(Material material)
Parameters
| Type | Name | Description |
|---|---|---|
| Material | material | Unity source material |
Returns
| Type | Description |
|---|---|
| bool | True when the exported glTF material should be PBR Metallic-Rougness based, false otherwise. |