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.
Inherited Members
Namespace: UnityEngine .Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
public static class HDMaterial
Methods
Name | Description |
---|---|
Get |
Get the Diffusion profile on Lit shaders. |
Get |
Get the Diffusion profile on a Shader Graph material. |
Get |
Compares a material's color and intensity values to determine if they are different. Works with Lit, Unlit and Decal shaders. |
Set |
Set Alpha Clipping on Lit and Unlit shaders. |
Set |
Set Alpha Cutoff on Lit and Unlit shaders. |
Set |
Set the Diffusion profile on Lit shaders. |
Set |
Set a Diffusion profile on a Shader Graph material. |
Set |
Set the Emissive Color on Lit, Unlit and Decal shaders. |
Set |
Set the Emissive Intensity on Lit, Unlit and Decal shaders. If the material doesn't use emissive intensity, this won't have any effect. |
Set |
Set the Rendering Pass on Lit, Unlit and Shadergraph shaders. |
Set |
Set the Surface Type of a HDRP material. |
Set |
Set to true to use a separate LDR color and intensity value for the emission color. Compatible with Lit, Unlit and Decal shaders. |
Validate |
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. |