Separated ShadowMap code into a new class.