I spent this weekend at home with the family for my birthday, so I didn't really get any work done. Feeling guilty about this, I sat down for 2 hours and wrote two little fun lighting-related 2D demos. Amusing!
My first demo was to write a program that let the user move the mouse around as a light source around a bitmap-based scene. The goal was to have the scene project 2D shadows wherever a line-of-sight check failed. It mostly works, is very fast, and only occassionally misses a spot. Change the BMP scene around to see what does and doesn't work. ;)
Bump mapping (of the 3D variety) is always something that has looked VERY cool, but I still haven't gone over the math of how it's done. So in an attempt to satiate that curiousity I wrote a go at 2D bump mapping. It doesn't look as nice as I would have preferred, but it's still neat to look at. Took a while to get the equation for the shadows nice and smooth.
(The prebuilt 'bump map' is of repeating capped-cones)
Hopefully I didn't forget any DLLs! ;)
EDIT: Ah, and I did. Reuploaded. :P