Moved debug rendering code back from WorldViewer