Skip to content

Commit a1ded8e

Browse files
committed
srp only code
1 parent 17362fb commit a1ded8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

com.unity.toonshader/Editor/UTS3GUI.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,7 +2094,9 @@ internal static void SetupTransparentModeForOutline(Material material, bool isTr
20942094
const string OUTLINE_CULL_MODE = "_SRPDefaultUnlitColMode";
20952095

20962096
if (isTransparent) {
2097+
#if URP_IS_INSTALLED_FOR_UTS || HDRP_IS_INSTALLED_FOR_UTS
20972098
material.SetShaderPassEnabled(ToonConstants.SHADER_LIGHT_MODE_NAME_FOR_OUTLINE, true);
2099+
#endif
20982100
MaterialSetInt(material, OUTLINE_COLOR_MASK, 0); //Don't write to the render target
20992101
MaterialSetInt(material, OUTLINE_CULL_MODE, (int)CullingMode.Backface);
21002102
} else {

0 commit comments

Comments
 (0)