docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SgUsdPreviewSurfaceShaderExporter

    Export support for USD Importer's Shader Graphs/usd_preview_surface shader

    Inheritance
    object
    ShaderExporterBase
    SgUsdPreviewSurfaceShaderExporter
    Inherited Members
    ShaderExporterBase._metalGlossChannelSwapMaterial
    ShaderExporterBase._normalChannelMaterial
    ShaderExporterBase.SetupTexture(Scene, string, Material, PreviewSurfaceSample, Vector4, string, string, string, ShaderExporterBase.ConversionType)
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Formats.USD
    Assembly: solution.dll
    Syntax
    public class SgUsdPreviewSurfaceShaderExporter : ShaderExporterBase

    Methods

    Name Description
    CopyTextureSettings(string, Material)

    Create a TextureSettings object from the input material texture settings

    Export(Scene, string, Material, PreviewSurfaceSample, string)

    Export the USD Importer Shader Graph material to UsdPreviewSurface

    GetTextureOutputFromChannelMask(Vector4)

    Convert the channel mask to a texture output name

    UVMaskToChannelName(Vector4)

    Convert from a mask indicating which of the 4 uv channels are used to a standard USD texture channel name

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