Method ValidateMaterial
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.
Declaration
public static bool ValidateMaterial(Material material)
Parameters
Type | Name | Description |
---|---|---|
Material | material | The target material. |
Returns
Type | Description |
---|---|
bool | False if the material doesn't have an HDRP Shader. |