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

Addons: Remove PackedPhongMaterial. #29382

Merged
merged 1 commit into from
Sep 10, 2024
Merged

Addons: Remove PackedPhongMaterial. #29382

merged 1 commit into from
Sep 10, 2024

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Sep 10, 2024

Related issue: #29295

Description

This PR removes PackedPhongMaterial which was originally added as a part of GeometryCompressionUtils.

The utils module itself is retained but no material modification happens anymore so if developers decide to compress their geometry data with GeometryCompressionUtils, they have to implement the decompression in the shader by themselves.

As an alternative to GeometryCompressionUtils, developers should consider a glTF based workflow with tools like meshoptimizer to optimized their assets (see https://threejs.org/examples/webgl_loader_gltf_compressed). If geometry data require a special decompression in the shader, things like ray casting or bounding volume computation won't work on the JS side (unless the engine is modified).

The decompression in the shader stage is something that we can achieve easier with TSL in the future so this is one more reasons to keep GeometryCompressionUtils around.

@mrdoob
Copy link
Owner

mrdoob commented Sep 10, 2024

SGTM 👍

@mrdoob mrdoob added this to the r169 milestone Sep 10, 2024
@Mugen87 Mugen87 merged commit eada853 into mrdoob:dev Sep 10, 2024
11 checks passed
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