Gain

What is it about?

This page documents the Gain node of the Redshift renderer in Cinema 4D. It adjusts contrast around the mid-point using Ken Perlin's gain curve — sharpening or softening masks and gradients with one parameter.

Returns a contrast gain of Input by Gain, using the following Ken Perlin formula:

Bias( 2 * Input, 1 - Gain ) * 0.5 ; if Input < 0.5

1 - Bias( 2 - 2 * Input, 1 - Gain ) * 0.5 ; otherwise