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

LUT Loaders: Add support for FloatType and add docs #27431

Merged
merged 7 commits into from
Dec 27, 2023

Conversation

vanruesc
Copy link
Contributor

Description

This PR updates the LUT loaders LUT3dlLoader and LUTCubeLoader to support FloatType data. I've also refactored the code based on the classes LUT3dlLoader and LUTCubeLoader from @pmndrs/postprocessing and added doc pages.

The following sandbox can be used to verify that the new loaders return the same results as the old ones when the type is set to UnsignedByteType (default): https://codesandbox.io/p/sandbox/lut-loader-test-dhprvp

Copy link
Collaborator

@gkjohnson gkjohnson left a comment

Choose a reason for hiding this comment

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

Thanks! One comment but this looks good otherwise.

Here's a live demo of the LUT page with this PR:

https://raw.githack.com/vanruesc/three.js/lut-loaders/examples/webgl_postprocessing_3dlut.html

Also it occurs to me that with webgl1 support being dropped in r163 we'll be able to drop support for loading 2d lut textures with these!

examples/jsm/loaders/LUTCubeLoader.js Outdated Show resolved Hide resolved
@mrdoob mrdoob added this to the r161 milestone Dec 26, 2023
@Mugen87 Mugen87 merged commit 60ee95f into mrdoob:dev Dec 27, 2023
11 checks passed
@vanruesc vanruesc deleted the lut-loaders branch December 27, 2023 11:35
@Methuselah96 Methuselah96 mentioned this pull request Jan 15, 2024
45 tasks
AdaRoseCannon pushed a commit to AdaRoseCannon/three.js that referenced this pull request Jan 15, 2024
* Update LUT loaders

* Add docs for LUT loaders

* Fix lint issues

* Update list.json

* Add module name to error messages

* Remove unnecessary code

* Update comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants