TINYGL: Refactored shadow drawing routines