Added checks not to render Shadowmap if shadow disabled or lights not visible