Work on the world and renderer. Splitting into two functions for performance.