-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Added color correction using LUT texture to CameraFrame postprocessing #7720
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
base: main
Are you sure you want to change the base?
Conversation
Isn't this just a new tonemap type? Like, maybe, |
Tone map converts HDR -> LDR. The look up works on LDR, so it cannot be used instead of tonemap, but along with it. |
In the example, should the LUT texture filtering be set to "nearest"? |
It needs to be linear, which it is. Otherwise you get banding due to relatively low resolution (32 pixels) |
Fixes #4315
Added color lookup to CameraFrame postprocessing. Live preview: https://engine-pso3eqdcf-playcanvas.vercel.app/#/graphics/hdr
New API
Texture is a common .cube format stored in a horizontal strip

There are multiple free online tools to convert to this format. I used https://www.color.io/free-online-lut-converter - loaded a cube file, and exported to
Cube Strip 2D
.This is also exposed in the
CameraFrame.mjs
script, but at the moment does not parse correctly. @marklundin is investigating.lut.mov