Replies: 1 comment 1 reply
-
This is what the extensions callback is for. You're passed an instance of your loader. In your case, you can add this to the default loading manager with: import * as THREE from 'three'
THREE.DefaultLoadingManager.addHandler(/\.tga$/i, new TGALoader()) Or via extensions: useLoader(GLTFLoader, '/path/to/model.gltf', loader => {
loader.manager.addHandler(/\.tga$/i, new TGALoader())
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using useGLTF which is in drei to load gltf file which has "tga" textures.
Then I find that I can use THREE.LoadingManager to help me to support "tga", but there is no "manager" param for me to init loader, so I hope I can have "manager" param in useLoader and useGLTF.
Beta Was this translation helpful? Give feedback.
All reactions