Skip to content

Commit

Permalink
[Port] [2021.3] DOCG-6464 Add steps to 2D sprite lit shader graph URP…
Browse files Browse the repository at this point in the history
… docs

**This is a backport of https://github.cds.internal.unity3d.com/unity/unity/pull/59127**

Add steps to the 2D sprite lit shader graph URP docs, to clarify connecting up transparency/alpha, and setting the normal map input. Response to user feedback.

Jira tickets:

- https://jira.unity3d.com/browse/DOCG-6464
- https://jira.unity3d.com/browse/DOCG-6465
  • Loading branch information
markg-unity authored and Evergreen committed Jan 20, 2025
1 parent ef50c3d commit 75b078c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@
7. Drag each of the **Texture 2D** properties onto the editor window. Attach each of the properties to the **Input Slots** of the Sample Texture 2D Nodes as shown below. Note that the 'NormalMap' property must be attached to the **Normal Type** Node only.
![](Images/2D/2d-urp12-3-attach-properties.png)
<br/>
8. Select **Save Asset** to save the Shader.

8. Select the **NormalMap** property, then in the **Graph Inspector** set **Mode** to **Normal Map**.

9. If your sprite texture has transparency, attach the alpha (**A**) output of the **Base Color** texture to the **Alpha** input of the **Fragment** context.

10. Select **Save Asset** to save the Shader.
![](Images/2D/2d-urp12-3-save-shader.png)

You can now apply the newly built Shader to materials.

0 comments on commit 75b078c

Please sign in to comment.