fixed the scene-dependent optimizations in shadowmaps