new Material(segment, layer)Parameters:NameTypeDescriptionsegmentSegmentlayerLayerSourcelayer/Material.ts, line 7