Skip to content

Commit

Permalink
fix: implements GLTFLoaderPlugin for all GLTF extensions
Browse files Browse the repository at this point in the history
This typing is necessary to register this extension on the three.js GLTFLoader.
  • Loading branch information
sguimmara committed Dec 16, 2024
1 parent e279ec8 commit 6822f40
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/plugins/three/gltf/GLTFCesiumRTCExtension.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export class GLTFCesiumRTCExtension {
import { GLTFLoaderPlugin } from 'three/examples/jsm/loaders/GLTFLoader.js';

export class GLTFCesiumRTCExtension implements GLTFLoaderPlugin {

name: 'CESIUM_RTC';

Expand Down
3 changes: 2 additions & 1 deletion src/plugins/three/gltf/GLTFMeshFeaturesExtension.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Vector3 } from 'three';
import { GLTFLoaderPlugin } from 'three/examples/jsm/loaders/GLTFLoader.js';

export class GLTFMeshFeaturesExtension {
export class GLTFMeshFeaturesExtension implements GLTFLoaderPlugin {

name: 'EXT_mesh_features';

Expand Down
3 changes: 2 additions & 1 deletion src/plugins/three/gltf/GLTFStructuralMetadataExtension.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Vector3, Texture } from 'three';
import { GLTFLoaderPlugin } from 'three/examples/jsm/loaders/GLTFLoader.js';

export class GLTFStructuralMetadataExtension {
export class GLTFStructuralMetadataExtension implements GLTFLoaderPlugin {

name: 'EXT_structural_metadata';

Expand Down

0 comments on commit 6822f40

Please sign in to comment.