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

MeshPhysicalMaterial: Update thickness default. #22762

Merged
merged 1 commit into from
Oct 30, 2021
Merged

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Oct 30, 2021

Related issue: see #22761 (comment)

Description

The default value of MeshPhysicalMaterial.thickness is now equal to thicknessFactor of the glTF spec.

https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_volume/README.md#properties

@mrdoob mrdoob added this to the r135 milestone Oct 30, 2021
@mrdoob mrdoob merged commit 41fe2a7 into mrdoob:dev Oct 30, 2021
@mrdoob
Copy link
Owner

mrdoob commented Oct 30, 2021

Thanks!

@WestLangley
Copy link
Collaborator

This PR is premature.

If thickness is zero, there is no volume, so the volume calculation makes no sense.

When thickness is zero, the thin surface model should be used according to the glTF spec.

The thin surface model had not been implemented.

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.

3 participants