-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
Conversation
There was a problem hiding this 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!
* 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
Description
This PR updates the LUT loaders
LUT3dlLoader
andLUTCubeLoader
to supportFloatType
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