1.2 KiB
1.2 KiB
Canvas material
The Canvas Master Stack material type enables you to author Shader Graph shaders that can be applied to UGUI user interface elements.
Create a Canvas Shader Graph
To create a Canvas material in Shader Graph, use one of the following methods:
- Modify an existing Shader Graph:
- Open the Shader Graph in the Shader Editor.
- In Graph Settings, select the HDRP Target. If there isn't one, go to Active Targets > Plus, and select HDRP.
- In the Material drop-down, select Canvas.
- Create a new Shader Graph. Go to Assets > Create > Shader Graph > HDRP, and select Canvas Shader Graph.
Refer to Canvas Master Stack reference for more information.
Limitations
HDRP treats Canvas materials the same as unlit transparent materials. You may experience sorting issues with refractive and prerefraction objects when stacking them on top of each others. You can workaround this limitation by using an Unlit transparent shadergraph for the canvas and controlling the renderqueue and sorting options.