docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GltfHdrpMaterialExporter

    Converts Unity Materials that use a glTFast Built-In shader to glTF materials

    Inheritance
    object
    MaterialExportBase
    GltfMaterialExporter
    GltfShaderGraphMaterialExporter
    GltfHdrpMaterialExporter
    Implements
    IMaterialExport
    Inherited Members
    GltfShaderGraphMaterialExporter.GetAlphaCutoff(Material)
    GltfMaterialExporter.ConvertMaterial(Material, out Material, IGltfWritable, ICodeLogger)
    MaterialExportBase.BaseColorProperty
    MaterialExportBase.MainTexProperty
    MaterialExportBase.ColorProperty
    MaterialExportBase.MetallicProperty
    MaterialExportBase.SmoothnessProperty
    MaterialExportBase.CutoffProperty
    MaterialExportBase.SetAlphaModeAndCutoff(Material, Material)
    MaterialExportBase.IsDoubleSided(Material, int)
    MaterialExportBase.IsUnlit(Material)
    MaterialExportBase.ExportUnlit(Material, Material, int, IGltfWritable, ICodeLogger)
    MaterialExportBase.GetUnlitColor(Material, out Color)
    MaterialExportBase.ExportTextureInfo(Texture, IGltfWritable, ImageFormat)
    MaterialExportBase.ExportNormalTextureInfo(Texture, Material, IGltfWritable, int)
    MaterialExportBase.AddImageExport(IGltfWritable, ImageExportBase, out int)
    MaterialExportBase.ExportTextureTransform(TextureInfoBase, Material, int, IGltfWritable)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: GLTFast.Export
    Assembly: glTFast.Export.dll
    Syntax
    public class GltfHdrpMaterialExporter : GltfShaderGraphMaterialExporter, IMaterialExport

    Methods

    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
    MaterialBase.AlphaMode

    glTF alpha mode.

    Overrides
    GltfShaderGraphMaterialExporter.GetAlphaMode(Material)
    See Also
    https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#_material_alphamode

    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.

    Overrides
    GltfShaderGraphMaterialExporter.IsDoubleSided(Material)
    See Also
    https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#_material_doublesided

    Implements

    IMaterialExport
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)