Skip to content

Commit

Permalink
fix: add missing jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
emavitta committed May 29, 2024
1 parent 3a61506 commit 6c52a1b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/loaders/useGLTF/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ export interface GLTFResult {
scene: THREE.Scene
}

/**
* Create the loader for Draco.
*
* @param {string} decoderPath
* @return {*}
*/

async function createDRACOLoader(decoderPath: string): Promise<DRACOLoader> {
const dracoLoader = new DRACOLoader()
dracoLoader.setDecoderPath(decoderPath)
Expand Down

0 comments on commit 6c52a1b

Please sign in to comment.