FrameBunker Hybrid Lights

Hi people.

I have been reading through this post http://framebunker.com/blog/lighting1-hybridlights/.
The problem is that although I understand what they are doing in the vertex shader. I have no idea how to actually implement it. Fairly new to writing shaders,
Been using the CGVertexLit shader from the wiki as a base but just cant seem to get it working.

You’re much better off using a ramp shader of any kind for desktop as you can model any kind of falloff with those. Also, Unity’s attenuation is usually done with a texture lookup instead.