+4

Add a hook to the main shader object for finalColor to allow for custom fog shaders and more.

Brad Herman 10 years ago 0
Finalcolor is the value after the whole shader calculates, diff, spec, lights, etc.

From the unity shader docs: Common use case for final color modifier (see above) would be implementing completely custom Fog. Fog needs to affect the final computed pixel shader color, which is exactly what the finalcolor modifier does.

#pragma surface surf Lambert finalcolor:mycolor