Game Development Reference
In-Depth Information
The SurfaceOutput structure
A standard output structure of surface shaders is as follows:
struct SurfaceOutput {
fixed3 Albedo;
fixed3 Normal;
fixed3 Emission;
half Specular;
fixed Gloss;
fixed Alpha;
};
You can also find it in the Lighting.cginc file inside Unity ( unity install
path}/Data/CGIncludes/Lighting.cginc in Windows and /Applica-
tions/Unity/Unity.app/Contents/CGIncludes/Lighting.cginc in
Mac).
Search WWH ::




Custom Search