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:drawdb/shader/operation/contrast |
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 |
|
|
|
|
|
contrast
(c ) |
float3 |
2.0, 2.0, 2.0 |
|
|
|
|
|
bias
(b ) |
float3 |
0.5, 0.5, 0.5 |
|
|
|
|
|
renderPassMode
(arp ) |
enum |
1 |
|
|
outValue
(o ) |
float3 |
0.0, 0.0, 0.0 |
|
|
outValueX
(ox ) |
float |
0.0 |
|
|
|
outValueY
(oy ) |
float |
0.0 |
|
|
|
outValueZ
(oz ) |
float |
0.0 |
|
|