import type { IPointMaterial } from '@antv/g-plugin-3d'; import { IMeshBasicMaterial, IMeshLambertMaterial, IMeshPhongMaterial } from '@antv/g-plugin-3d'; export type Material = PointMaterial | BasicMaterial | LambertMaterial | PhongMaterial; export interface PointMaterial extends Partial> { type: 'point'; map?: string | TexImageSource; } interface BasicMaterial extends Partial> { type: 'basic'; map?: string | TexImageSource; } interface LambertMaterial extends Partial> { type: 'lambert'; map?: string | TexImageSource; // aoMap?: string | Texture; } interface PhongMaterial extends Partial> { type: 'phong'; map?: string | TexImageSource; // aoMap?: string | Texture; }