Go to: Related nodes. Attributes.

Contrast is a utility node you can use to increase or decrease the contrast in a texture.

When you increase Contrast, you are making the light colors lighter and the dark colors darker. When you decrease contrast, you are bringing all the colors closer to the middle range. The Bias attribute is used to control where the "center" of this range is.

The Contrast node lets you control the contrast of each of the R, G, and B channels individually.

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

Node nameParentsClassificationMFn typeCompatible function sets
contrastnodeutility/color:drawdb/shader/operation/contrastkContrastkBase
kNamedObject
kDependencyNode
kContrast

Related nodes

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

Attributes (17)

bias, biasX, biasY, biasZ, contrast, contrastX, contrastY, contrastZ, outValue, outValueX, outValueY, outValueZ, renderPassMode, value, valueX, valueY, valueZ

Long name (short name)TypeDefaultFlags
bias (b) float30.5, 0.5, 0.5outputinputconnectablestorable
Bias controls the "middle point" of the contrast adjustment. Increase Bias to move the middle point upwards (more of the texture will become dark as contrast increaes). Decrease Bias to move the middle point down (more of the texture will become light as contrast increases).
biasX (bx) float0.0outputinputconnectablestorablekeyable
The first component of Bias
biasY (by) float0.0outputinputconnectablestorablekeyable
The second component of Bias
biasZ (bz) float0.0outputinputconnectablestorablekeyable
The third component of Bias
contrast (c) float32.0, 2.0, 2.0outputinputconnectablestorable
Contrast controls the amount of contrast adjustment done by this node. You can adjust the contrast of the R, G, and B components individually.

Increase Contrast to make the light colors lighter, and the dark colors darker. Decrease Contrast to make everything more grey.

contrastX (cx) float0.0outputinputconnectablestorablekeyable
The first component of Contrast
contrastY (cy) float0.0outputinputconnectablestorablekeyable
The second component of Contrast
contrastZ (cz) float0.0outputinputconnectablestorablekeyable
The third component of Contrast
outValue (o) float30.0, 0.0, 0.0outputconnectable
Out Value is the new color or texture, calculated by applying the contrast adjustment to Value.
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
renderPassMode (arp) enum1outputinputconnectablestorablekeyable
renderPassMode controls how the node affects material render passes.
value (v) float30.0, 0.0, 0.0outputinputconnectablestorable
Value is the input color or texture that will have its contrast adjusted by this node.
valueX (vx) float0.0outputinputconnectablestorablekeyable
First component of Value
valueY (vy) float0.0outputinputconnectablestorablekeyable
Second component of Value
valueZ (vz) float0.0outputinputconnectablestorablekeyable
Third component of Value