Skip to content

Commit

Permalink
Fixed: incorrect version check when applying OUTPUT_SH4() in Universa…
Browse files Browse the repository at this point in the history
…lToonBody.hlsl. (#328)
  • Loading branch information
H3idi-X authored Aug 22, 2023
1 parent 095ecfd commit 64a97cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@
half fogFactor = ComputeFogFactor(positionCS.z);

OUTPUT_LIGHTMAP_UV(v.lightmapUV, unity_LightmapST, o.lightmapUV);
#if UNITY_VERSION >= 202312
#if UNITY_VERSION >= 202317
OUTPUT_SH4(positionWS, o.normalDir.xyz, GetWorldSpaceNormalizeViewDir(positionWS), o.vertexSH);
#elif UNITY_VERSION >= 202310
OUTPUT_SH(positionWS, o.normalDir.xyz, GetWorldSpaceNormalizeViewDir(positionWS), o.vertexSH);
Expand Down

0 comments on commit 64a97cb

Please sign in to comment.