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.

This node is MP safe

Node name Parents Classification MFn type Compatible function sets
contrast node utility/color kContrast kBase
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) Type Default Flags
value (v) float3 0.0, 0.0, 0.0 outputinputconnectablestorable
Value is the input color or texture that will have its contrast adjusted by this node.
valueX (vx) float 0.0 outputinputconnectablestorablekeyable
First component of Value
valueY (vy) float 0.0 outputinputconnectablestorablekeyable
Second component of Value
valueZ (vz) float 0.0 outputinputconnectablestorablekeyable
Third component of Value
contrast (c) float3 2.0, 2.0, 2.0 outputinputconnectablestorable
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) float 0.0 outputinputconnectablestorablekeyable
The first component of Contrast
contrastY (cy) float 0.0 outputinputconnectablestorablekeyable
The second component of Contrast
contrastZ (cz) float 0.0 outputinputconnectablestorablekeyable
The third component of Contrast
bias (b) float3 0.5, 0.5, 0.5 outputinputconnectablestorable
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) float 0.0 outputinputconnectablestorablekeyable
The first component of Bias
biasY (by) float 0.0 outputinputconnectablestorablekeyable
The second component of Bias
biasZ (bz) float 0.0 outputinputconnectablestorablekeyable
The third component of Bias
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 new color or texture, calculated by applying the contrast adjustment to Value.
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