From ce43d14c89456f3e56076fd89530bea8be14cfc8 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sat, 22 Jun 2024 14:50:41 +0800 Subject: [PATCH] fix(GLTFLoader): update GLTFParser.assignTexture(). --- types/three/examples/jsm/loaders/GLTFLoader.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/three/examples/jsm/loaders/GLTFLoader.d.ts b/types/three/examples/jsm/loaders/GLTFLoader.d.ts index aadb89019..335d6c58a 100644 --- a/types/three/examples/jsm/loaders/GLTFLoader.d.ts +++ b/types/three/examples/jsm/loaders/GLTFLoader.d.ts @@ -3,6 +3,7 @@ import { BufferAttribute, BufferGeometry, Camera, + ColorSpace, FileLoader, Group, ImageBitmapLoader, @@ -112,7 +113,8 @@ export class GLTFParser { texCoord?: number | undefined; extensions?: any; }, - ) => Promise; + colorSpace?: ColorSpace | undefined, + ) => Promise; assignFinalMaterial: (object: Mesh) => void; getMaterialType: () => typeof MeshStandardMaterial; loadMaterial: (materialIndex: number) => Promise;