More work on the renderer. Still completely broken.