Skip to content

Conversation

@sciecode
Copy link
Contributor

@sciecode sciecode commented Jul 26, 2025

Closes #31429, #31493.

Description

Introduces setExpandedFormat loader configuration to control whether the output should be converted to RGBAFormat automatically. Defaults to true.

/cc @mrdoob

@sciecode
Copy link
Contributor Author

sciecode commented Jul 27, 2025

Updated PR according to feedback, now supports setOutputFormat() and defaults to RGBAFormat.
Accepts RedFormat, RGFormat and RGBAFormat.

RGBFormat is currently treated as invalid, cause it used to be emulated in Mozilla Firefox, which led to horrible performance. But I can extend support if it's not longer the case.

I also took the opportunity to support format compression (e.g RGBAFormat -> RedFormat), which was trivially done.

@sciecode sciecode changed the title EXRLoader: Introduces optional texture output format expansion EXRLoader: Introduces output-format API Jul 27, 2025
@mrdoob
Copy link
Owner

mrdoob commented Jul 28, 2025

Excellent!

@mrdoob mrdoob added this to the r179 milestone Jul 28, 2025
@mrdoob mrdoob merged commit 0eb4c7a into mrdoob:dev Jul 28, 2025
8 checks passed
@sciecode sciecode deleted the exr branch July 29, 2025 16:14
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.

EXRLoader: Cannot read properties of undefined (reading 'width' )

4 participants