Graphics Programs Reference
In-Depth Information
You can download the example code files for all Packt topics you
have purchased from your account at
http://www.packtpub.com
.
If
you purchased this topic elsewhere, you can visit
ht-
tp://www.packtpub.com/support
and register to have the files e-mailed
directly to you. The high resolution colored images of the topic can
also be found in the code bundle.
8. Slide the
Fac
slider value to
1.000
and the surface is now showing only
the
Glossy BSDF
shader component, which is, in fact, connected to the
second
Shader
input socket corresponding to a value set to
1.000
.
9. Set the
Fac
value to
0.800
. The cube is now reflecting on its sides, even
if blurred, the white plane, because we have a material that is reflective
at 80 percent, matte at 20 percent, and so on:
10. Lastly, select the plane, go to the
Material
window and click on the
New
button to assign a default whitish material.
How it works...
So, in its minimal form, a Cycles material is made by a closure (a node shader) con-
nected to the
Material Output
node; by default, for a new material, the node shader
is the
Diffuse BSDF
with RGB color set to 0.800, and the result is a matte whitish
material (with the
Roughness
value at
0.000
actually corresponding to a
Lambert
shader). The
Diffuse BSDF
node can be replaced by any other one of the available
shader list. For example, by a
Glossy BSDF
shader as in the former cube scene,
which produces a totally mirrored surface material.