Refactor renderers example to use viewports