GLTFLoader: add getDependency( type, index ) implementation#24252
GLTFLoader: add getDependency( type, index ) implementation#24252Mugen87 merged 3 commits intomrdoob:devfrom
Conversation
|
No conlusion yet but let me share what I'm worried about so far. (It would be better than no response for long.) I'm thinking whether it is good to let Perhaps the root issue may be the current plugin system doesn't expect that an extension has dependency with other extensions.... |
|
Yes, with KHR_animation_pointer an extension certainly has dependencies to other extensions. I think I'm happy to change |
|
I think it might be better to make the glTF plugins expose an optional For example in
or
And the default loader doesn't need to know anything about |
|
Like this? |
|
Yeah, exactly 👍 |
|
Maybe that sounds good. Nit: |
b081e45 to
b309ca2
Compare
|
I rebased this on dev and implemented the suggestions from here – let me know if that works, thanks @takahirox! Regarding the |
Description
@takahirox requested that the
getDependency('light')implementation should be a separate PR, so here it is.This is in preparation for supporting the KHR_animation_pointer glTF extension in three.js.
This PR adds a new way for extensions to implement
getDependency( type, index )for custom types; targets for implementation are right nowlightandaudio.Related: