@three3d/tools
Version:
@three3d/tools 提供了 ThreeJS 常用的工具库
9 lines • 358 B
TypeScript
import { Texture } from "three";
import { type ColorGradient } from "image-tls";
export type GradientTextureOptions = Texture | TexImageSource | string | ColorGradient;
/**
* 创建颜色梯度材质
* @param gradient
*/
export declare function createLinearGradientTexture(gradient: GradientTextureOptions): Texture;
//# sourceMappingURL=gradient.d.ts.map