Graphics Programs Reference
In-Depth Information
4. Add a
Texture Coordinate
node (press
Shift
+
A
and go to
Input
|
Tex-
ture Coordinate
) and a
Geometry
node (press
Shift
+
A
and go to
Input
|
Geometry
).
5. Connect the
Normal
output of the
Geometry
node to the
Vector
input of
the first
Mapping
node. Connect the
Position
output of the
Geometry
node to the
Vector
input of the second
Mapping
node. Then connect the
UV
output of the
Texture Coordinate
node to the
Vector
input of the third
Mapping
node.
6. In the second
Mapping
node, change the
X
location's value to
0.500
and the
Y
rotation's value to
90°
.
7. Connect the output of the first
Mapping
node to the input of the first
Gradient
texture, the output of the second
Mapping
to the input of the
second
Gradient
texture, and the output of the third
Mapping
to both the
Vector
inputs of the last two
Voronoi
texture nodes.
8. Add a
ColorRamp
node (press
Shift
+
A
and go to
Convertor
|
Color-
Ramp
) and connect the
Color
output of the last
Voronoi
texture to the
Fac
input; set the interpolation to
B-Spline
. On the
ColorRamp
node,
click on the little
Add
button. This adds a new medium gray marker in the
middle of the slider. Change its color to total black and move it to the left,
very close to the first black one.
9. Add a
Math
node (press
Shift
+
A
and go to
Convertor
|
Math
) and set the
operation to
Multiply
and connect the
Color
output of the second
Gradi-
ent
texture node to the first
Value
input socket of the
Math
node.
10. Add a
Mix
node (press
Shift
+
A
and go to
Color
|
Mix
), set the
Blend
Type
to
Difference
and the
Fac
value to
1.00
. Connect the
Color
output
of the first
Gradient
texture to the
Color1
and the
Value
output of the
Math
node to the
Color2
input socket.
11. Press
Shift
+
D
to duplicate the
Mix
node, set the
Blend Type
to
Sub-
tract
, and connect the
ColorRamp
color output to both the
Color2
and
to the
Fac
input sockets. Connect the
Color
output of the first
Voronoi
texture to the
Color1
input socket.
12. Add a new
ColorRamp
node, connect the output of the
Difference
node
to the
Fac
input, and then move the white marker two-thirds to the left.
13. Duplicate the
Mix
node, set the
Blend Type
to
Burn
, and connect the
color output of the last
ColorRamp
node to the
Color1
input. Connect the
output of the
Subtract
node to the
Color2
input socket, as shown here: