{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class ShaderGraphMaterialGenerator | Unity glTFast | 6.0.1
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ShaderGraphMaterialGenerator

    Inheritance
    object
    MaterialGenerator
    ShaderGraphMaterialGenerator
    HighDefinitionRPMaterialGenerator
    UniversalRPMaterialGenerator
    Implements
    IMaterialGenerator
    Inherited Members
    MaterialGenerator.DefaultMaterialName
    MaterialGenerator.RenderTypeTag
    MaterialGenerator.TransparentCutoutRenderType
    MaterialGenerator.OpaqueRenderType
    MaterialGenerator.FadeRenderType
    MaterialGenerator.TransparentRenderType
    MaterialGenerator.AlphaTestOnKeyword
    MaterialGenerator.TextureTransformKeyword
    MaterialGenerator.UVChannelSelectKeyword
    MaterialGenerator.AlphaCutoffProperty
    MaterialGenerator.BaseColorProperty
    MaterialGenerator.BaseColorTextureProperty
    MaterialGenerator.BaseColorTextureRotationProperty
    MaterialGenerator.BaseColorTextureScaleTransformProperty
    MaterialGenerator.BaseColorTextureTexCoordProperty
    MaterialGenerator.CullModeProperty
    MaterialGenerator.CullProperty
    MaterialGenerator.DstBlendProperty
    MaterialGenerator.DiffuseFactorProperty
    MaterialGenerator.DiffuseTextureProperty
    MaterialGenerator.DiffuseTextureScaleTransformProperty
    MaterialGenerator.DiffuseTextureRotationProperty
    MaterialGenerator.DiffuseTextureTexCoordProperty
    MaterialGenerator.EmissiveFactorProperty
    MaterialGenerator.EmissiveTextureProperty
    MaterialGenerator.EmissiveTextureRotationProperty
    MaterialGenerator.EmissiveTextureScaleTransformProperty
    MaterialGenerator.EmissiveTextureTexCoordProperty
    MaterialGenerator.GlossinessFactorProperty
    MaterialGenerator.NormalTextureProperty
    MaterialGenerator.NormalTextureRotationProperty
    MaterialGenerator.NormalTextureScaleTransformProperty
    MaterialGenerator.NormalTextureTexCoordProperty
    MaterialGenerator.NormalTextureScaleProperty
    MaterialGenerator.MetallicProperty
    MaterialGenerator.MetallicRoughnessMapProperty
    MaterialGenerator.MetallicRoughnessMapScaleTransformProperty
    MaterialGenerator.MetallicRoughnessMapRotationProperty
    MaterialGenerator.MetallicRoughnessMapUVChannelProperty
    MaterialGenerator.OcclusionTextureProperty
    MaterialGenerator.OcclusionTextureStrengthProperty
    MaterialGenerator.OcclusionTextureRotationProperty
    MaterialGenerator.OcclusionTextureScaleTransformProperty
    MaterialGenerator.OcclusionTextureTexCoordProperty
    MaterialGenerator.RoughnessFactorProperty
    MaterialGenerator.SpecularFactorProperty
    MaterialGenerator.SpecularGlossinessTextureProperty
    MaterialGenerator.SpecularGlossinessTextureScaleTransformProperty
    MaterialGenerator.SpecularGlossinessTextureRotationProperty
    MaterialGenerator.SpecularGlossinessTextureTexCoordProperty
    MaterialGenerator.SrcBlendProperty
    MaterialGenerator.ZWriteProperty
    MaterialGenerator.GetDefaultMaterialGenerator()
    MaterialGenerator.Logger
    MaterialGenerator.GetDefaultMaterial(bool)
    MaterialGenerator.FindShader(string, ICodeLogger)
    MaterialGenerator.SetLogger(ICodeLogger)
    MaterialGenerator.TrySetTexture(TextureInfoBase, Material, IGltfReadable, int, int, int, int)
    MaterialGenerator.TransmissionWorkaroundShaderMode(Transmission, ref Color)
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: GLTFast.Materials
    Assembly: solution.dll
    Syntax
    public class ShaderGraphMaterialGenerator : MaterialGenerator, IMaterialGenerator

    Fields

    Name Description
    AlphaDstBlendProperty

    Shader property ID for property _AlphaDstBlend

    ClearcoatNormalTextureProperty

    Shader property ID for property clearcoatNormalTexture

    ClearcoatNormalTextureRotationProperty

    Shader property ID for property clearcoatNormalTextureRotation

    ClearcoatNormalTextureScaleProperty

    Shader property ID for property clearcoatNormalTexture_Scale

    ClearcoatNormalTextureScaleTransformProperty

    Shader property ID for property clearcoatNormalTexture_ST

    ClearcoatNormalTextureTexCoordProperty

    Shader property ID for property clearcoatNormalTexture_texCoord

    ClearcoatProperty

    Shader property ID for property clearcoatFactor

    ClearcoatRoughnessProperty

    Shader property ID for property clearcoatRoughnessFactor

    ClearcoatRoughnessTextureProperty

    Shader property ID for property clearcoatRoughnessTexture

    ClearcoatRoughnessTextureRotationProperty

    Shader property ID for property clearcoatRoughnessTexture_Rotation

    ClearcoatRoughnessTextureScaleTransformProperty

    Shader property ID for property clearcoatRoughnessTexture_ST

    ClearcoatRoughnessTextureTexCoordProperty

    Shader property ID for property clearcoatRoughnessTexture_texCoord

    ClearcoatTextureProperty

    Shader property ID for property clearcoatTexture

    ClearcoatTextureRotationProperty

    Shader property ID for property clearcoatTexture_Rotation

    ClearcoatTextureScaleTransformProperty

    Shader property ID for property clearcoatTexture_ST

    ClearcoatTextureTexCoordProperty

    Shader property ID for property clearcoatTexture_texCoord

    DisableSsrTransparentKeyword

    Shader keyword _DISABLE_SSR_TRANSPARENT

    EnableFogOnTransparentKeyword

    Shader keyword _ENABLE_FOG_ON_TRANSPARENT

    MetallicShader

    Name of the shader graph used for PBR metallic/roughness materials

    MotionVectorTag

    MotionVector shader tag name

    MotionVectorUser

    MotionVector shader tag User value

    MotionVectorsPass

    MotionVector shader pass name

    ShaderPassDepthOnlyPass

    Shader pass DepthOnly

    ShaderPassRayTracingPrepass

    Shader pass RayTracingPrepass

    ShaderPassTransparentBackface

    Shader pass TransparentBackface

    ShaderPassTransparentDepthPostpass

    Shader pass TransparentDepthPostpass

    ShaderPassTransparentDepthPrepass

    Shader pass TransparentDepthPrepass

    SpecularShader

    Name of the shader graph used for PBR specular/glossiness materials

    SurfaceTypeTransparentKeyword

    Shader keyword _SURFACE_TYPE_TRANSPARENT

    TransmissionFactorProperty

    Shader property ID for property transmissionFactor

    TransmissionTextureProperty

    Shader property ID for property transmissionTexture

    UnlitShader

    Name of the shader graph used for unlit materials

    ZTestGBufferProperty

    Shader property ID for property _ZTestGBuffer

    Methods

    Name Description
    ApplyTransmission(ref Color, IGltfReadable, Transmission, Material, RenderQueue?)
    ApplyTransmissionShaderFeatures(MaterialBase)
    GenerateDefaultMaterial(bool)

    Creates a fallback material to be assigned to nodes without a material.

    GenerateMaterial(MaterialBase, IGltfReadable, bool)

    Converts a glTF material into a Unity Material. gltfMaterial might reference textures, which can be queried from gltf.

    GetMetallicShader(MetallicShaderFeatures)
    GetMetallicShaderFeatures(MaterialBase)
    LoadShaderByName(string)
    SetAlphaModeMask(MaterialBase, Material)
    SetDoubleSided(MaterialBase, Material)
    SetShaderModeBlend(MaterialBase, Material)
    SetShaderModeOpaque(MaterialBase, Material)
    SetShaderModePremultiply(MaterialBase, Material)
    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)