refactoring of rendering passes

preparing for generalization