C4 Engine
C4 Engine API Documentation

World::SetFinalColorTransform

Defined in:  C4World.h
Sets the color transform used in post-processing.
Prototype

void SetFinalColorTransform(const ColorRGBA& scale, const ColorRGBA& bias);

void SetFinalColorTransform(const ColorRGBA& red, const ColorRGBA& green, const ColorRGBA& blue, const ColorRGBA& bias);

Parameters
scale The componentwise scale color.
bias The componentwise bias color.
red The color matrix row for the red channel.
green The color matrix row for the green channel.
blue The color matrix row for the blue channel.
Description
The SetFinalColorTransform sets the color transform that is used in the final stage of post-processing when a world is rendered. If the scale parameter is specified, then the red, green, and blue components of the final color are multiplied by the corresponding components of the scale color. If the red, green, and blue parameters are specified, then they serve as rows of a color matrix that transform the final color. The alpha channels are not included in the calculation. In both cases, the bias parameter specifies a color that is added to the result of the scale or matrix transform.

The channels of each color passed to the SetFinalColorTransform function may be any floating-point values. By default, the post-processing color transform uses a scale color of (1,1,1,1) and a bias color of (0,0,0,0).