Go to: Related nodes. Attributes.
Luminance = 0.3 * red + 0.59 * green + 0.11 * blue
You can use the Luminance node to convert a color image or texture
into a monochrome (black-and-white) image. To do this, connect
the texture's Out Color into the Luminance node's Value attribute,
then connect the Luminance node's Out Value attribute to
all three color channels (R, G, and B) of a shader.
In the table below, imporant 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 |
---|---|---|---|---|
luminance | dependNode | utility/color | kLuminance | kBase kNamedObject kDependencyNode kLuminance |
blendColors, clamp, lightInfo, gammaCorrect, surfaceLuminance, contrast, rgbToHsv, hsvToRgb, samplerInfo, setRange, resolution, renderQuality, renderGlobals, renderGlobalsList, baseShadingSwitch, singleShadingSwitch, doubleShadingSwitch, tripleShadingSwitch
outValue, value, valueB, valueG, valueR
Long name (short name) | Type | Default | Flags | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
value
(v )
| float3 | 0.0, 0.0, 0.0 | |||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
outValue
(o )
| float | 0.0 | |||||||||||||||