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.
Node name | Parents | Classification | MFn type | Compatible function sets |
---|
quadShadingSwitch | baseShadingSwitch | utility/switch:drawdb/shader/operation/quadShadingSwitch | kQuadShadingSwitch | kBase 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) | Type | Default | Flags |
---|
|
default
(def )
| compound | n/a |     |
|
| defTriple
(dtr )
| float3 | 0.8, 0.8, 0.8 |      | |
| | |
|
|
|
input
(i )
| compound | n/a |      |
|
|
|
|
output
(out )
| compound | n/a |   |
|
| outTriple
(otr )
| float3 | 0.0, 0.0, 0.0 |   | |
| outComp1
(oc1 )
| float | 0.0 |   | |
| | outComp2
(oc2 )
| float | 0.0 |   | |
| | outComp3
(oc3 )
| float | 0.0 |   | |
|
|
| outSingle
(osi )
| float | 0.0 |   | |
|