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

GLTFExporter: Only merge roughness and metalness maps #23616

Merged
merged 1 commit into from
Mar 1, 2022
Merged

Conversation

mrdoob
Copy link
Owner

@mrdoob mrdoob commented Mar 1, 2022

Related issue: #23229 (comment)

@mrdoob mrdoob added this to the r139 milestone Mar 1, 2022
@mrdoob mrdoob merged commit c9d557c into dev Mar 1, 2022
@mrdoob mrdoob deleted the gltfexporter branch March 1, 2022 03:58
@mrdoob
Copy link
Owner Author

mrdoob commented Mar 1, 2022

Cherry-picked into master and included in 0.138.2.

Comment on lines +750 to +751
// TODO Use new Source() instead?
texture.source = new Texture( canvas ).source;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Mugen87

I was looking for a nice way of copying all the properties of a texture and change the source but I ended up doing this hack because seems like we're currently not exposing THREE.Source.

What do you think?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initially, THREE.Source was meant to be an internal thing.

However, looking at your code it would be indeed nicer to expose THREE.Source and use it in the mentioned line.

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