MaterialMap 材质对象
MaterialMap.color 颜色材质
typescript
(property) color: (obj: {
color: MapColor;
}) => ColorMaterialPropertyMaterialMap.flashing 闪烁材质
color颜色speed速度isDynamic是否动态变化
typescript
(property) flashing: (obj: {
color: MapColor;
speed: number;
isDynamic: boolean;
}) => ImageMaterialPropertyMaterialMap.image 图片材质
img图片路径color颜色repeat重复
typescript
(property) image: (obj: {
img: Img | (() => Img);
color?: MapColor | undefined;
repeat?: {
x: number;
y: number;
} | undefined;
}) => ImageMaterialPropertyMaterialMap.textureScroll 贴图循环流动材质
img图片color颜色direction正反方向orientation贴图流动方式,垂直,或横向流动speed速度count贴图重复数量materialType注册的材质名称
typescript
(property) textureScroll: (options: {
img: string;
color: MapColor;
direction: "+" | "-";
orientation: "vertical" | "cross";
speed: number;
count: number;
materialType?: string | undefined;
}) => MaterialPropertyMaterialMap.lineFlashing 闪烁线材质
color颜色speed速度
typescript
(property) lineFlashing: (color?: MapColor | undefined, speed?: number | undefined) => LineFlashingMaterialMaterialMap.lineShuttle 穿梭线材质
color颜色speed速度img材质贴图
typescript
(property) lineShuttle: (params?: {
color?: MapColor | undefined;
speed?: number | undefined;
img?: string | undefined;
}) => LineShuttleMaterialMaterialMap.circleWave 水波纹材质
color颜色speed速度count数量gradient颜色倾斜度
typescript
(property) circleWave: (options?: {
color?: MapColor | undefined;
speed?: number | undefined;
count?: number | undefined;
gradient?: number | undefined;
}) => CircleWaveMaterial