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

Is it possible to use the MOZ Lightmap GLTF Extension with vanilla threejs? #264

Open
kitaedesigns opened this issue Jan 12, 2024 · 1 comment

Comments

@kitaedesigns
Copy link

I'd like to use Lightmaps in Threejs exported from Blender, I know I could do this in Threejs with a separate texture but wondering if I could also just use the MOZ Lightmap GLTF Extension instead. Seems like it has solved a lot of issues with the Lightmaps being washed out, using the second UV channel, attaching the right Lightmap to the right mesh etc.

@keianhzo
Copy link
Contributor

keianhzo commented Apr 3, 2024

It is if you add the extension to the vanilla ThreeJS glTF loader. See here: https://github.com/mozilla/hubs/blob/bf6ed63453a8ac37bbabc3eb054aa05844b7d41e/src/components/gltf-model-plus.js#L635

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

No branches or pull requests

2 participants