Color Expressions

Expressions that perform actions on color inputs.

Windows
MacOS
Linux
On this page

Desaturation

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

Item

Description

Properties

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.

Inputs

Fraction

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).

DesaturationExample.png

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

Tags
Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback