Skip to content

Add custom color grading LUT support and test UI in gltf_viewer.#9875

Open
pixelflinger wants to merge 1 commit intomainfrom
ma/final-lut
Open

Add custom color grading LUT support and test UI in gltf_viewer.#9875
pixelflinger wants to merge 1 commit intomainfrom
ma/final-lut

Conversation

@pixelflinger
Copy link
Copy Markdown
Collaborator

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]

@pixelflinger pixelflinger added the internal Issue/PR does not affect clients label Apr 4, 2026
case CustomLut::NEGATIVE:
v = 1.0f - v;
break;
case CustomLut::GRAYSCALE:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Funnily enough, all these examples can be achieved without LUTs using the existing ColorGrading APIs :)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Issue/PR does not affect clients

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants