Re-named RenderStage to MaterialType
Fixed compiler warning