Go to: Related nodes. Attributes.

Gamma Correct is a utility node that allows you to do gamma correction on a color or texture.

Gamma Correction allows you to smoothly remap the colors in an image. Extreme values (very light or very dark) will not change much, but midrange tones can be made brighter or darker.

This node allows you to specify different gamma values for the three channels of the input.

The typical formula for calculating gamma is:

     new == old ** (1.0/Gamma)
 

In the table below, important attributes have their names listed in bold in the description column.

This node is MP safe

Node nameParentsClassificationMFn typeCompatible function sets
gammaCorrectdependNodeutility/colorkGammaCorrectkBase
kNamedObject
kDependencyNode
kGammaCorrect

Related nodes

blendColors, clamp, lightInfo, surfaceLuminance, contrast, luminance, rgbToHsv, hsvToRgb, samplerInfo, setRange, resolution, renderQuality, renderGlobals, renderGlobalsList, baseShadingSwitch, singleShadingSwitch, doubleShadingSwitch, tripleShadingSwitch

Attributes (12)

gamma, gammaX, gammaY, gammaZ, outValue, outValueX, outValueY, outValueZ, value, valueX, valueY, valueZ

Long name (short name)TypeDefaultFlags
value (v) float30.0, 0.0, 0.0outputinputconnectablestorable
Value is the input color or texture, which will be gamma-corrected.
valueX (vx) float0.0outputinputconnectablestorablekeyable
The first component of Value
valueY (vy) float0.0outputinputconnectablestorablekeyable
The second component of Value
valueZ (vz) float0.0outputinputconnectablestorablekeyable
The third component of Value
gamma (g) float31.0, 1.0, 1.0outputinputconnectablestorable
Gamma controls the amount of gamma correction applied to each channel. A value of 1 means that the the color is not adjusted at all. Increase Gamma to make the mid-range tones brighter. Decrease Gamma to make them darker.
gammaX (gx) float0.0outputinputconnectablestorablekeyable
The first component of Gamma
gammaY (gy) float0.0outputinputconnectablestorablekeyable
The second component of Gamma
gammaZ (gz) float0.0outputinputconnectablestorablekeyable
The third component of Gamma
outValue (o) float30.0, 0.0, 0.0outputconnectable
Out Value is the gamma-corrected color calculated by this node.
outValueX (ox) float0.0outputconnectable
The first component of Out Value
outValueY (oy) float0.0outputconnectable
The second component of Out Value
outValueZ (oz) float0.0outputconnectable
The third component of Out Value