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

Update LWOLoader to more closely match LW native materials #22776

Merged
merged 1 commit into from
Nov 3, 2021

Conversation

onthez
Copy link
Contributor

@onthez onthez commented Nov 2, 2021

This PR includes a few minor adjustments to allow LWO files loaded into three.js to more closely match their appearance in the native LW app.

Updated SDK reference to latest 2019 file format specs.

Adjusted refractionRatio to more closely match LWO rendering.

Adjusted default metalness value for transparent items to preserve refraction.

Opacity set to 1 for refractive materials preserving visible refraction.

Roughness and Metalness values set to 1 when a texture is present. The texture modulates this value and anything less than 1 will limit the maximum possible value.

@looeee looeee self-requested a review November 3, 2021 02:45
@mrdoob mrdoob added this to the r135 milestone Nov 3, 2021
@mrdoob mrdoob merged commit 964ea37 into mrdoob:dev Nov 3, 2021
@mrdoob
Copy link
Owner

mrdoob commented Nov 3, 2021

Thanks!

@onthez onthez deleted the LWOLoaderUpdate1 branch November 3, 2021 14:45
@Mugen87
Copy link
Collaborator

Mugen87 commented Jan 2, 2022

@onthez Can you please check whether #19383 and #19381 are now fixed or not?

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.

4 participants