Cube now generates index and vertex buffers.