Skip to content

Commit 660f671

Browse files
authored
Fix for the issue 325. #325 (#326)
1 parent 69878ff commit 660f671

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

com.unity.toonshader/Runtime/UniversalRP/Shaders/UniversalToonBody.hlsl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,9 @@
459459
half fogFactor = ComputeFogFactor(positionCS.z);
460460

461461
OUTPUT_LIGHTMAP_UV(v.lightmapUV, unity_LightmapST, o.lightmapUV);
462-
#if UNITY_VERSION >= 202310
462+
#if UNITY_VERSION >= 202312
463+
OUTPUT_SH4(positionWS, o.normalDir.xyz, GetWorldSpaceNormalizeViewDir(positionWS), o.vertexSH);
464+
#elif UNITY_VERSION >= 202310
463465
OUTPUT_SH(positionWS, o.normalDir.xyz, GetWorldSpaceNormalizeViewDir(positionWS), o.vertexSH);
464466
#else
465467
OUTPUT_SH(o.normalDir.xyz, o.vertexSH);

0 commit comments

Comments
 (0)