Color Material Expressions

Material expressions that perform actions on color inputs.

On this page


The Desaturation expression desaturates its input, or converts the colors of its input into shades of gray, based a certain percentage.




Luminance Factors

Specifies the amount that each channel contributes to the desaturated color. This is what controls that green is brighter than red which is brighter than blue when desaturated.



Specifies the amount of desaturation to apply to the input. Percent can range from 0.0(full original color, no desaturation) to 1.0 (fully desaturated).


Programmers: Define desaturated color D, input color I and luminance factor L. The output will be O = (1 - Percent)*( I )) + Percent * I

This page was written for a previous version of Unreal Engine and has not been updated for the current Unreal Engine 5.0 release.
Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey