Skip to content

Addons: Remove PackedPhongMaterial.#29382

Merged
Mugen87 merged 1 commit intomrdoob:devfrom
Mugen87:dev2
Sep 10, 2024
Merged

Addons: Remove PackedPhongMaterial.#29382
Mugen87 merged 1 commit intomrdoob:devfrom
Mugen87:dev2

Conversation

@Mugen87
Copy link
Copy Markdown
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
Copy Markdown
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
eugenehp added a commit to eugenehp/three.js that referenced this pull request Sep 25, 2024
leftovers after removing `PackedPhongMaterial ` mrdoob#29382
@eugenehp eugenehp mentioned this pull request Sep 25, 2024
Mugen87 pushed a commit that referenced this pull request Sep 25, 2024
leftovers after removing `PackedPhongMaterial ` #29382
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