Show frames
Go to:
Related nodes. Attributes.
Use a Surface Shader when you want to completely control
the color, transparency and matte opacity of a material. This kind
of shader does no shading calculation of any kind. Rather, it allows you
connect other attributes directly to its color, glow color,
and transparency. It completely ignores everything
else that would normally affect a shader.
For example, if you connect the Translate attribute of an object to the
Out Color attribute of a Surface Shader, then the color of the shader
will depend on the position of the object in space. As the object
moves, it will change color.
In the table below, important attributes have their names indicated
in bold in the description column.
This node is MP safe
Node name | Parents | Classification | MFn type | Compatible function sets |
---|
surfaceShader | node | shader/surface/utility:drawdb/shader/surface/surfaceShader | kSurfaceShader | kBase kNamedObject kDependencyNode kSurfaceShader |
Related nodes
lambert, reflect, phongE, phong, blinn, anisotropic, volumeShader, simpleVolumeShader, displacementShader, layeredShader, useBackground, defaultShaderList, shadingMap
Attributes (17)
materialAlphaGain, outColor, outColorB, outColorG, outColorR, outGlowColor, outGlowColorB, outGlowColorG, outGlowColorR, outMatteOpacity, outMatteOpacityB, outMatteOpacityG, outMatteOpacityR, outTransparency, outTransparencyB, outTransparencyG, outTransparencyR
Long name (short name) | Type | Default | Flags |
---|
|
materialAlphaGain
(maga )
| float | 1.0 |      |
|
|
outColor
(oc )
| float3 | 0.0, 0.0, 0.0 |     |
|
|
|
|
|
outGlowColor
(og )
| float3 | 0.0, 0.0, 0.0 |     |
|
| outGlowColorR
(ogr )
| float | 0.0 |     | |
|
| outGlowColorG
(ogg )
| float | 0.0 |     | |
|
| outGlowColorB
(ogb )
| float | 0.0 |     | |
|
|
outMatteOpacity
(omo )
| float3 | 1.0, 1.0, 1.0 |     |
|
| outMatteOpacityR
(omor )
| float | 0.0 |     | |
|
| outMatteOpacityG
(omog )
| float | 0.0 |     | |
|
| outMatteOpacityB
(omob )
| float | 0.0 |     | |
|
|
outTransparency
(ot )
| float3 | 0.0, 0.0, 0.0 |     |
|
| outTransparencyR
(otr )
| float | 0.0 |     | |
|
| outTransparencyG
(otg )
| float | 0.0 |     | |
|
| outTransparencyB
(otb )
| float | 0.0 |     | |
|