A good place to start (and where you can look at other toon shaders) is:

http://www.coniserver.net/wiki/index.php/Shaders

There is even an HLSL tutorial which is... eh it's ok. There's tons of books on this stuff but your math needs to be good to get a decent understanding.

good luck!


"Towlie, you're the worst character ever." I know...