Refactored color, phongmaterial and hitinfo