Game Development Reference
In-Depth Information
Tip
Note that
UnpackNormal(x)
is the method that is provided by Unity to unpack the
normal or bump texture, which you can find in the
UnityCG.cginc
file inside Unity
(
unity install path}/Data/CGIncludes/UnityCG.cginc
in Windows
and
/Applications/Unity/Unity.app/Contents/CGIncludes/Un-
ityCG.cginc
in Mac).