I ll be very quick, is it possible to make a custom shader like that one used in team Fortress 2 (and render the related effect) in Unity Free Version?
As reference, the effect I would like to achieve is pretty much like this: http://forum.unity3d.com/threads/16753-Illustrative-Cartoon-Shader-Team-Fortress-Style and the code for the rim light and ramp texture sampling should be something like:
sampler2D _LightingRamp;
inline half4 LightingBlinnPhongEditor_PrePass (EditorSurfaceOutput s, half4 light)
{
float lum = Luminance( light.rgb );
float newIllumination = tex2D(_LightingRamp, float2( lum, 0)).r;
half3 spec = light.a * s.Gloss;
half4 c;
c.rgb = (s.Albedo * newIllumination + newIllumination * spec);
c.a = s.Alpha + Luminance(spec);
return c;
}
considering the rim light as view dir independent as valve says in his article:
http://www.valvesoftware.com/publications/2007/NPAR07_IllustrativeRenderingInTeamFortress2.pdf
Thanks very much for your help guys.
Regards.