Go to: Related nodes. Attributes.

Quad Shading Switch is a utility node that enables you to switch between different values based on which surface is being shaded.

The usage of this node is very samilar to TripleShadingSwitch. The only different is this works on quadruple-valued attributes, like rgb and alpha. Note: If you need to switch single attributes (such as Intensity of Translucence), use a Single Shading Switch. If you need to switch double attributes, such as UV coordinates, use a Double Shading switch. And if you need to switch triple attributes, such as xyz, use a Triple Shading switch.

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

This node is MP safe

Node nameParentsClassificationMFn typeCompatible function sets
quadShadingSwitchbaseShadingSwitchutility/switchkQuadShadingSwitchkBase
kNamedObject
kDependencyNode
kQuadShadingSwitch

Related nodes

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

Attributes (20)

defComp1, defComp2, defComp3, defSingle, defTriple, default, inComp1, inComp2, inComp3, inQuad, inShape, inSingle, inTriple, input, outComp1, outComp2, outComp3, outSingle, outTriple, output

Long name (short name)TypeDefaultFlags
input (i) compoundn/aarrayoutputinputconnectablestorable
aInput is a combination of two attributes, a quad value and the name of a shape. This is also a multiple attribute, so you can specify any number of these pairs.

During rendering, the Output attribute is set depending on which object is being rendered. When one of the objects in in this list is being rendered, then Output is set to its corresponding value.

inQuad (iq) compoundn/aoutputinputconnectablestorable
aInQuad is the value component of aInput (see above).
inTriple (itr) float3outputinputconnectablestorablekeyable
aInTriple is the triple "Value" component of aInQuad
inComp1 (ic1) float0.0outputinputconnectablestorable
The first component of aInTriple
inComp2 (ic2) float0.0outputinputconnectablestorable
The second component of aInTriple
inComp3 (ic3) float0.0outputinputconnectablestorable
The third component of aInTriple
inSingle (isi) float0.0outputinputconnectablestorablekeyable
aInSingle is the single "Value" component of aInQuad
inShape (is) Messagen/aoutputinputconnectable
aInShape is the "Shape" component of aInput (see above).
default (def) compoundn/aoutputinputconnectablestorable
aDefault is the value used by this node when it is not rendering one of the nodes on the aInput list..
defTriple (dtr) float30.8, 0.8, 0.8outputinputconnectablestorablekeyable
aDefTriple is the triple value of the aDefault component.
defComp1 (dc1) float0.0outputinputconnectablestorable
The first component of aDefTriple
defComp2 (dc2) float0.0outputinputconnectablestorable
The second component of aDefTriple
defComp3 (dc3) float0.0outputinputconnectablestorable
The third component of aDefTriple
defSingle (dsi) float0.0outputinputconnectablestorablekeyable
aDefSingle is the single value of aDefault component.
output (out) compoundn/aoutputconnectable
aOutput is the output value of the switch. This value depends on what shape is being rendered. When one of the objects in the Input list is being rendered, then output is set to its corresponding value. When none of the objects in the list is being rendered, Output is set to equal to Default.
outTriple (otr) float30.0, 0.0, 0.0outputconnectable
outTriple is the triple value of the output component.
outComp1 (oc1) float0.0outputconnectable
The first component of aOutTriple.
outComp2 (oc2) float0.0outputconnectable
The second component of aOutTriple
outComp3 (oc3) float0.0outputconnectable
The third component of aOutTriple
outSingle (osi) float0.0outputconnectable
aOutSingle is the single value of the output component.