Skip to content

Conversation

@mrdoob
Copy link
Owner

@mrdoob mrdoob commented Mar 28, 2023

Related issue: #25721

Description

Another clean up while working on #25721.


transmission: useTransmission,
transmissionMap: useTransmission && !! material.transmissionMap,
thicknessMap: useTransmission && !! material.thicknessMap,
Copy link
Owner Author

Choose a reason for hiding this comment

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

Is thicknessMap used when transmission is not used?

Copy link
Contributor

@hybridherbst hybridherbst Mar 28, 2023

Choose a reason for hiding this comment

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

At least in glTF "thicknessMap" comes from the volume extension that requires the transmission extension.

@github-actions
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize Gzipped Diff from dev
618.5 kB 154.7 kB +20 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Filesize Gzipped Diff from dev
410.3 kB 100.9 kB +20 B

@mrdoob mrdoob changed the title WebGLPrograms; sheen and transmission checks clean up. WebGLPrograms: sheen and transmission checks clean up. Mar 28, 2023
@mrdoob mrdoob added this to the r151 milestone Mar 28, 2023
@mrdoob mrdoob merged commit 2fd6f8c into dev Mar 28, 2023
@mrdoob mrdoob deleted the webglprograms_cleanup branch March 28, 2023 11:00
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