Skip to content

glTF: parse second UV channel if available #11127

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

Merged
merged 1 commit into from
Apr 4, 2017
Merged

glTF: parse second UV channel if available #11127

merged 1 commit into from
Apr 4, 2017

Conversation

stevenvergenz
Copy link

GLTF 2.0 has lightmap support, which in three.js requires a second UV channel. This PR adds this UV channel to the geometry if it's in the source model.

@mrdoob
Copy link
Owner

mrdoob commented Apr 4, 2017

Do you have a example file?

@stevenvergenz
Copy link
Author

This PR doesn't actually add light map parsing for glTF, just the UV channel. By example file, do you mean a sample model? I can upload one if desired, but it's probably unnecessary given how trivial this change is.

@mrdoob
Copy link
Owner

mrdoob commented Apr 4, 2017

By example file, do you mean a sample model? I can upload one if desired, but it's probably unnecessary given how trivial this change is.

Yep! It would be handy to have.

@mrdoob
Copy link
Owner

mrdoob commented Apr 4, 2017

Merging for now...

@mrdoob mrdoob merged commit 3000395 into mrdoob:dev Apr 4, 2017
@mrdoob
Copy link
Owner

mrdoob commented Apr 4, 2017

Thanks!

@stevenvergenz stevenvergenz deleted the feature/gltf-uv2 branch April 4, 2017 22:12
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.

2 participants