docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MaterialExportBase

    Converts a Unity Material into a glTF material

    Inheritance
    object
    MaterialExportBase
    HighDefinitionMaterialExport
    StandardMaterialExport
    Implements
    IMaterialExport
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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

    In This Article
    Back to top
    Copyright © 2024 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)