Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically extend catalogue #16

Closed
alvarosabu opened this issue Dec 3, 2022 · 0 comments · Fixed by #17
Closed

Dynamically extend catalogue #16

alvarosabu opened this issue Dec 3, 2022 · 0 comments · Fixed by #17

Comments

@alvarosabu
Copy link
Member

alvarosabu commented Dec 3, 2022

Atm, is only possible to extend the catalogue when installing the @tresjs/core plugin like this:

import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'

app.use(plugin, {
  extends: {
    OrbitControls,
  },
})

But it's likely that packages like cientos would need to extend the initial catalogue dynamically to add new components, for example TresTextGeometry from three/examples/jsm/geometries/TextGeometry for #15

I will investigate if there is away to add more components o renderer on the fly

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 a pull request may close this issue.

1 participant