Graphics Programs Reference
In-Depth Information
4. Add an
Attribute
node (press
Shift
+
A
and go to
Input
|
Attribute
) and
a
ColorRamp
(press
Shift
+
A
and go to
Convertor
|
ColorRamp
); in the
Name
slot of the
Attribute
node write the name of the vertex color layer,
Col_vp
, and connect the node's
Color
output to the
Fac
input socket of
the
ColorRamp
.
5. Connect the
Color
output of the
ColorRamp
node to the
Fac
input socket
of the
Mix Shader
node. Set the
ColorRamp
node interpolation to
B-
Spline
and move the white color marker three-fourths to the left side of
the slider.
6. Add a frame (press
Shift
+
A
and go to
Layout
|
Frame
), select the
At-
tribute
and
ColorRamp
nodes, then the frame itself and press
Ctrl
+
P
to
parent them. Rename the frame
VERTEX_COLOR_STENCIL
.
7. Now go to the first
Metal
group and set
IOR
to
0.870
,
Color
to
R 0.229
,
G 0.307
, and
B 0.299
, and
Roughness
to
0.200
. In the second
Metal
group set
IOR
to
1.000
,
Color
to
R 0. 584
,
G 0.786
, and
B 0.765
,
Roughness
to
1.000
, and
Aniso_Amount
to
0.100
.