Model -> Material.
Implemented the new object architecture, and simplified the OpenGL cache.