docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class HDMaterial

    Utility class for setting properties, keywords and passes on a material to ensure it is in a valid state for rendering with HDRP.

    Inheritance
    object
    HDMaterial
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering.HighDefinition
    Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
    Syntax
    public static class HDMaterial

    Methods

    Name Description
    GetDiffusionProfile(Material)

    Get the Diffusion profile on Lit shaders.

    GetDiffusionProfileShaderGraph(Material, string)

    Get the Diffusion profile on a Shader Graph material.

    GetUseEmissiveIntensity(Material)

    Compares a material's color and intensity values to determine if they are different. Works with Lit, Unlit and Decal shaders.

    SetAlphaClipping(Material, bool)

    Set Alpha Clipping on Lit and Unlit shaders.

    SetAlphaCutoff(Material, float)

    Set Alpha Cutoff on Lit and Unlit shaders.

    SetDiffusionProfile(Material, DiffusionProfileSettings)

    Set the Diffusion profile on Lit shaders.

    SetDiffusionProfileShaderGraph(Material, DiffusionProfileSettings, string)

    Set a Diffusion profile on a Shader Graph material.

    SetEmissiveColor(Material, Color)

    Set the Emissive Color on Lit, Unlit and Decal shaders.

    SetEmissiveIntensity(Material, float, EmissiveIntensityUnit)

    Set the Emissive Intensity on Lit, Unlit and Decal shaders. If the material doesn't use emissive intensity, this won't have any effect.

    SetRenderingPass(Material, RenderingPass)

    Set the Rendering Pass on Lit, Unlit and Shadergraph shaders.

    SetSurfaceType(Material, bool)

    Set the Surface Type of a HDRP material.

    SetUseEmissiveIntensity(Material, bool)

    Set to true to use a separate LDR color and intensity value for the emission color. Compatible with Lit, Unlit and Decal shaders.

    ValidateMaterial(Material)

    Setup properties, keywords and passes on a material to ensure it is in a valid state for rendering with HDRP. This function is only for materials using HDRP Shaders or ShaderGraphs.

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