Toon shading without shaders?

BlitzMax Modules Forums/MiniB3D/Toon shading without shaders?

Sorry I've been having computer problems lately...
I didn't convert the texture generating code, I made it simple for me and just loaded a premade texture instead.
Also I didn't need it for animated objects, so I simplified the code a lot.