Did some prep work to make the code ready for shadow mapping.