- Home /
Question by
skeith · Aug 24, 2012 at 01:38 PM ·
shadershaderlabdocumentation
Shader fuctions documentation
Is there any documentation for functions used is shaderlab like UnpackNormal() or WorldReflectionVector()?
Comment
Answer by Jessy · Aug 24, 2012 at 02:47 PM
This is impossible to edit on iOS, sorry.
The UnityCg.cginc file contains commonly used declarations and functions so that the shaders can be kept smaller. The file itself is found inside Unity application ({unity install path}/Data/CGIncludes/UnityCG.cginc on Windows, /Applications/Unity/Unity.app/Contents/CGIncludes/UnityCG.cginc on Mac).
http://docs.unity3d.com/Documentation/Manual/ShaderTut2.html
Your answer
