未验证 提交 9b8d9940 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #19277 from sirxemic/fix-cube-texture-mipmaps-type

TS: Fix mipmaps property type for cube textures
......@@ -33,7 +33,7 @@ export class Texture extends EventDispatcher {
name: string;
sourceFile: string;
image: any; // HTMLImageElement or ImageData or { width: number, height: number } in some children;
mipmaps: ImageData[];
mipmaps: any[]; // ImageData[] for 2D textures and CubeTexture[] for cube textures;
mapping: Mapping;
wrapS: Wrapping;
wrapT: Wrapping;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册