placed generateShadowMap after setUpModel