Is there documented what and how to use the macros and the lighting system Unity uses in the built-in shaders, so my shaders can use any configuration of lights Unity support ?
.ORG
Is there documented what and how to use the macros and the lighting system Unity uses in the built-in shaders, so my shaders can use any configuration of lights Unity support ?
.ORG
Your best bet is probably to download the built-in shaders and work of diffuse shader. It has all the lighting stuff and quite little else.
It’s documented here: http://unity3d.com/Documentation/Manual/SL-Attenuation.html
OMG I read that a long time ago… well i read all the manual actually… but didn’t remember, i wansn’t in shaders at that time.
Thanks
.ORG