Graphics Reference
In-Depth Information
13. Press Shift + D to duplicate the Power-Math node, set Operation to Add, and
connect the output of the Power node to its first Value input socket. Connect its
output to the Fac input socket of the Mix Shader4 node.
14. Connect the Fac output of the Voronoi Texture node to the second Value input
socket of the Add-Math node.
The completed network of the material
15. Save the file.
How it works...
In this recipe, we used the Ray Length output of the Light Path node to drive the amount of
translucency on the mesh. Ray Length does exactly what its name suggests. It returns the
length of a light ray passing through an object. So basically, it is possible for Cycles to know
the thickness of a mesh. On the thicker parts, the translucency will show less or even for
nothing, whereas it will be more visible on the thinner parts of the mesh.
Note that in the shader network, the Ray Length output was intensified
by a set of Math nodes and added to the Voronoi Texture node's output.
Then it was connected to the factor input of the Mix Shader node to drive
the blending of the Diffuse and of the Translucent components.
 
Search WWH ::




Custom Search