Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented May 17, 2019

With this PR, it's now possible to convert modules like ColladaLoader that have dependencies to other modules. Interestingly, the new code revealed a bug in the module of ShadowMapViewer since UnpackDepthRGBAShader is no part of the core.

The PR implements the suggestion mentioned by @mrdoob here: https://github.com/mrdoob/three.js/pull/16400/files#r284492725

It introduces per module an array that represents the dependencies to other example files. Per entry there is a key/value mapping that looks like: classname=>path to module. In this way, it's very flexibel to define dependencies since you not have a 1:1 relationship between class name and module name. E.g. it's now easy to define that Pass should be loaded from EffectComposer.js which would be not possible to derive only from code.

@Mugen87 Mugen87 requested review from donmccurdy and mrdoob May 17, 2019 19:07
@Mugen87 Mugen87 mentioned this pull request May 17, 2019
@Mugen87 Mugen87 removed the request for review from mrdoob May 19, 2019 14:16
@Mugen87 Mugen87 added this to the r105 milestone May 19, 2019
@Mugen87 Mugen87 merged commit 4558f45 into mrdoob:dev May 19, 2019
@mrdoob
Copy link
Owner

mrdoob commented May 20, 2019

You're the best! 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants