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 name Parents Classification MFn type Compatible function sets
gammaCorrect dependNode utility/color kGammaCorrect kBase
kNamedObject
kDependencyNode
kGammaCorrect

Related nodes

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

Attributes (13)

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

Long name (short name) Type Default Flags
value (v) float3 0.0, 0.0, 0.0 outputinputconnectablestorable
Value is the input color or texture, which will be gamma-corrected.
valueX (vx) float 0.0 outputinputconnectablestorablekeyable
The first component of Value
valueY (vy) float 0.0 outputinputconnectablestorablekeyable
The second component of Value
valueZ (vz) float 0.0 outputinputconnectablestorablekeyable
The third component of Value
gamma (g) float3 1.0, 1.0, 1.0 outputinputconnectablestorable
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) float 0.0 outputinputconnectablestorablekeyable
The first component of Gamma
gammaY (gy) float 0.0 outputinputconnectablestorablekeyable
The second component of Gamma
gammaZ (gz) float 0.0 outputinputconnectablestorablekeyable
The third component of Gamma
renderPassMode (arp) enum 1 outputinputconnectablestorablekeyable
renderPassMode controls how the node affects material render passes.
outValue (o) float3 0.0, 0.0, 0.0 outputconnectable
Out Value is the gamma-corrected color calculated by this node.
outValueX (ox) float 0.0 outputconnectable
The first component of Out Value
outValueY (oy) float 0.0 outputconnectable
The second component of Out Value
outValueZ (oz) float 0.0 outputconnectable
The third component of Out Value