Graphics Programs Reference
In-Depth Information
ial
window but is visible only in the
Node Editor
window); the new nodes
appear already selected.
4. Again press
Shift
+
A
in the
Node Editor
window and this time add a
Mix
Shader
node.
5. Press
G
to move it on the link connecting the
Diffuse BSDF
node to the
Material Output
node (you'll probably need to first adjust the position of
the two nodes to make room between them). The
Mix Shader
node gets
automatically pasted in between, the
Diffuse
node output connected to
the first
Shader
input socket, as shown in the following screenshot:
6. Left-click with the mouse on the green dot output of the
Glossy BSDF
shader node and grab the link to the second input socket of the
Mix
Shader
node. Release the mouse button now and see the nodes being
connected.
7. Because the blending
Fac
(
factor
) value of the
Mix Shader
node is set
by default to
0.500
, the two shader components,
Diffuse
and
Glossy
,
are now showing on the cube's surface in equal parts, that is, each one
at 50 percent. Left-click on the
Fac
slider with the mouse and slide it to
0.000
. The cube's surface is now showing only the
Diffuse
component,
because the
Diffuse BSDF
shader is connected to the first
Shader
input
socket that is corresponding to a value set to
0.000
.
Tip
Downloading the example code