Explore the properties and settings you can use to customize the default Unlit shader graph in the Universal Render Pipeline (URP).
The default Vertex and Fragment Contexts contain the following Blocks. Which Blocks display might change depending on the graph settings.
| Input | Type | Description |
|---|---|---|
| Position | Vector3 | Sets the vertex position in object space. |
| Normal | Vector3 | Sets the normal of the vertex in object space. |
| Tangent | Vector3 | Sets the tangent of the vertex in object space. |
| Motion Vector | Vector3 | Sets the per‑vertex motion vector in object space. This property is available only if you set Additional Motion Vector to Custom in graph settings. |
| Input | Type | Description |
|---|---|---|
| Base Color | Vector3 | Sets the base color of the material. The default is Color.grey. |
| Alpha | Float | Sets the alpha of the material. The range is 0 to 1. The default is 1. This property is available only if you set Surface Type to Transparent or you enable Alpha Clipping in graph settings. |
| Alpha Clip Threshold | Float | Sets the minimum alpha value for a pixel to be visible. The range is 0 to 1. The default is 0.5. This property is available only if you enable Alpha Clipping in the graph settings. |
Explore the shader graph settings you can use to customize the Vertex and Fragment Contexts.
For more details about graph settings that are common to all shader graph shaders, refer to the Graph Settings tab.
| Setting | Description |
|---|---|
| Allow Material Override | Enables material instances to override properties exposed in the shader graph. When disabled, materials using this shader will always use the values defined in the shader asset. |
| Surface Type | Determines if the material supports transparency. The options are:
|
| Blending Mode | Sets how the shader blends the color of a transparent material with the background. This property is available only when you set Surface Type to Transparent. The options are:
|
| Render Face | Specifies which faces of the mesh the shader renders. The options are:
|
| Depth Write | Determines whether the shader writes depth information to the depth buffer. The options are:
|
| Depth Test | Specifies the comparison function used to determine whether a pixel passes the depth test. The options are:
|
| Alpha Clipping | Discards pixels if their alpha value is lower than a threshold value. When you enable this setting, Unity adds the Alpha Clip Threshold Block to the Fragment context. Avoid using this setting when Alpha and Alpha Clip Threshold are constant for the entire material, as it can cause visual artifacts and unnecessary MSAA performance overhead. |
| Cast Shadows | Determines whether the material casts shadows onto other objects. |
| Supports LOD Cross Fade | Enables level of detail (LOD) cross‑fading when the Mesh Renderer has a LOD Group component with Fade Mode set to Cross Fade. |
| Additional Motion Vectors | Controls how Unity generates motion vectors for this material, for motion blur and temporal anti‑aliasing. The options are:
|
| Alembic Motion Vectors | Enables motion vector support for meshes streamed through Alembic files. For more information, refer to Built-in shader support for motion vectors in URP. |
| Custom Editor GUI | Renders a custom editor GUI in the Inspector window of the material. Enter the name of the GUI class in the field. For more information, refer to Control material properties in the Inspector window. |