Sketch out how the renderer could work with a bit of pseudo-code.