Skip to content

Commit a125771

Browse files
authored
calling InitializeBacedGIData() is necessary for newer than 6000.0.12. (#414)
* calling InitializeBacedGIData() is necessary for newer than 6000.0.0. * The version split InputData init was from 6000.0.12, not 6000.0.0. --------- Co-authored-by: H3idi-X <>
1 parent 1781e24 commit a125771

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@
7575
#endif // #if (VERSION_LOWER(12, 0))
7676
# endif
7777
InitializeInputData(input, surfaceData.normalTS, inputData);
78-
78+
# if UNITY_VERSION >= 60000012
79+
InitializeBakedGIData(input, inputData);
80+
# endif
7981
BRDFData brdfData;
8082
InitializeBRDFData(surfaceData.albedo,
8183
surfaceData.metallic,

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@
7171
# endif //(VERSION_LOWER(12, 0))
7272
# endif
7373
InitializeInputData(input, surfaceData.normalTS, inputData);
74-
74+
# if UNITY_VERSION >= 60000012
75+
InitializeBakedGIData(input, inputData);
76+
# endif
7577
BRDFData brdfData;
7678
InitializeBRDFData(surfaceData.albedo,
7779
surfaceData.metallic,

0 commit comments

Comments
 (0)