Refactoring in progress. Added RenderingState class to manages rendering state while in octree traversal.