some refactoring and fixing things around. preparing for shadow volume implmementation...
Just testing something. REMEMBER TO REVERT THESE CHANGES BACK!!