Graphics Reference
In-Depth Information
16. Connect the Subtract02 node's output to the RGB to BW node, the output of this
node to the Height input socket of the Bump node, and the Normal output of the
Bump node to the Normal input of the Diffuse BSDF shader. Set the Bump node's
Strength value to 1.000 as shown in the following screenshot:
The network for the foam shader
17. Select all of these nodes and press Ctrl + G . Delete the Group Input node on the left.
18. Drag the BSDF output of the Diffuse BSDF shader onto the right side, to the
empty socket of the Group Output node. Repeat this for the Color output of the
Subtract02 node.
19. Press Tab to close the group. Rename it as Foam .
Creating the stencil material for the foam location
What we need now is a way to limit both the amount and the presence of the foam in the
upper parts of the waves:
1.
Add Gradient (press Shift + A and navigate to Texture | Gradient Texture) and
Voronoi Texture (press Shift + A and navigate to Texture | Voronoi Texture) texture
nodes, select them, and press Shift + D to duplicate them. Label them as Gradient
Texture01 , Gradient Texture02 , Voronoi Texture03 , and Voronoi
Texture04 .
2.
Set the Gradient Types to Easing for both the nodes, the Scale value of the Voronoi
Texture03 node to 250.000 , and the Scale value of the Voronoi Texture04 node to
50.000 .
 
Search WWH ::




Custom Search