Add custom color grading LUT support and test UI in gltf_viewer.#9875
Open
pixelflinger wants to merge 1 commit intomainfrom
Open
Add custom color grading LUT support and test UI in gltf_viewer.#9875pixelflinger wants to merge 1 commit intomainfrom
pixelflinger wants to merge 1 commit intomainfrom
Conversation
romainguy
reviewed
Apr 7, 2026
| case CustomLut::NEGATIVE: | ||
| v = 1.0f - v; | ||
| break; | ||
| case CustomLut::GRAYSCALE: |
Contributor
There was a problem hiding this comment.
Funnily enough, all these examples can be achieved without LUTs using the existing ColorGrading APIs :)
Collaborator
Author
There was a problem hiding this comment.
yeah, it's just an example.
Implemented the custom 3D LUT feature in the ColorGrading API, allowing users to specify a custom LUT for final color mapping. To test this feature, added a "Custom LUT" option to the color grading settings in the gltf_viewer sample. This includes several procedurally generated LUTs for testing purposes: - Negative - Grayscale - Sepia - Teal and Orange Updated settings serialization (Settings.cpp) and the viewer UI (ViewerGui.cpp) to support these options. FIXES=[362596936]
2fbf6eb to
c6a9ed1
Compare
bejado
approved these changes
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implemented the custom 3D LUT feature in the ColorGrading API, allowing users to specify a custom LUT for final color mapping.
To test this feature, added a "Custom LUT" option to the color grading settings in the gltf_viewer sample. This includes several procedurally generated LUTs for testing purposes:
Updated settings serialization (Settings.cpp) and the viewer UI (ViewerGui.cpp) to support these options.
FIXES=[362596936]