diff --git a/.all-contributorsrc b/.all-contributorsrc index 2406ab87c..0584170cf 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -268,6 +268,15 @@ "contributions": [ "code" ] + }, + { + "login": "robertlong", + "name": "Robert Long", + "avatar_url": "https://avatars.githubusercontent.com/u/1753624?v=4", + "profile": "https://github.com/robertlong", + "contributions": [ + "code" + ] } ], "skipCi": true, diff --git a/types/three/examples/jsm/loaders/GLTFLoader.d.ts b/types/three/examples/jsm/loaders/GLTFLoader.d.ts index f7d95c280..0beacebd1 100644 --- a/types/three/examples/jsm/loaders/GLTFLoader.d.ts +++ b/types/three/examples/jsm/loaders/GLTFLoader.d.ts @@ -13,6 +13,9 @@ import { Material, SkinnedMesh, Texture, + TextureLoader, + FileLoader, + ImageBitmapLoader, } from '../../../src/Three'; import { DRACOLoader } from './DRACOLoader'; @@ -75,6 +78,19 @@ export interface GLTFReference { export class GLTFParser { json: any; + options: { + path: string; + manager: LoadingManager; + ktx2Loader: KTX2Loader; + meshoptDecoder: /* MeshoptDecoder */ any; + crossOrigin: string; + requestHeader: { [header: string]: string }; + }; + + fileLoader: FileLoader; + textureLoader: TextureLoader | ImageBitmapLoader; + plugins: GLTFLoaderPlugin; + extensions: { [name: string]: any }; associations: Map; getDependency: (type: string, index: number) => Promise; @@ -135,5 +151,6 @@ export interface GLTFLoaderPlugin { extendMaterialParams?: | ((materialIndex: number, materialParams: { [key: string]: any }) => Promise | null) | undefined; + createNodeMesh?: ((nodeIndex: number) => Promise | null) | undefined; createNodeAttachment?: ((nodeIndex: number) => Promise | null) | undefined; }