Skip to content

Commit 75b078c

Browse files
markg-unityEvergreen
authored and
Evergreen
committed
[Port] [2021.3] DOCG-6464 Add steps to 2D sprite lit shader graph URP 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
1 parent ef50c3d commit 75b078c

File tree

1 file changed

+6
-1
lines changed
  • Packages/com.unity.render-pipelines.universal/Documentation~

1 file changed

+6
-1
lines changed

Packages/com.unity.render-pipelines.universal/Documentation~/ShaderGraph.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@
3030
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.
3131
![](Images/2D/2d-urp12-3-attach-properties.png)
3232
<br/>
33-
8. Select **Save Asset** to save the Shader.
33+
34+
8. Select the **NormalMap** property, then in the **Graph Inspector** set **Mode** to **Normal Map**.
35+
36+
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.
37+
38+
10. Select **Save Asset** to save the Shader.
3439
![](Images/2D/2d-urp12-3-save-shader.png)
3540

3641
You can now apply the newly built Shader to materials.

0 commit comments

Comments
 (0)