Refactoring volume renderer.