Improved readability and speed of MaterialRenderStage