refactored light engine, debug toolbar, box verticies caching