Skip to content

FBXLoader: Add webp MIME type. #31098

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

Merged
merged 1 commit into from
May 13, 2025
Merged

FBXLoader: Add webp MIME type. #31098

merged 1 commit into from
May 13, 2025

Conversation

Altrozero
Copy link
Contributor

@Altrozero Altrozero commented May 13, 2025

Description

Webp images on materials wouldn't load with the FBXLoader.

Very simple change to add webp type to the parseImage function.

It's a fairly rare that webp is used within an FBX, but ran in to this today. Using webp was able to shave 100kb from a 512x512 png texture (reduced from >150kb to <50kb), while keeping transparency.

@Mugen87 Mugen87 changed the title Added webp file type to FBXLoader.js FBXLoader: Add webp MIME type. May 13, 2025
@Mugen87 Mugen87 added this to the r177 milestone May 13, 2025
@Mugen87 Mugen87 merged commit 213f35a into mrdoob:dev May 13, 2025
11 checks passed
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
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