fixed many light calculation issues, made a comprehensive settings menu, improved debugging, added a ground ambient enhancing system, added a quality preset setting