Moved Material rendering code out for all Materials except for ShapeEditor