Graphics Programs Reference
In-Depth Information
Creating the stencil material
At this point, both the materials are assigned to the Mountain object, but if you
render the preview now, they will show everywhere on the mesh mixed at 50 percent.
We must build a separator to decide where the surface must show only the rock and
where only the snow:
1. Add a Geometry node (press Shift + A and go to Input | Geometry ), a
Mapping node (press Shift + A and go to Vector | Mapping ), a Gradient
Texture node (press Shift + A and go to Texture | Gradient Texture ), a
Mix node (press Shift + A and go to Color | Mix ), and a ColorRamp node
(press Shift + A and go to Convertor | ColorRamp ).
2. Connect the Normal output of the Geometry node to the Vector input of
the Mapping node, and then connect the Mapping node to the Gradient
texture. Connect the Color output of the texture to the Color1 input sock-
et of the Mix node and the Color output of this latter to the Fac input of
the ColorRamp node.
3. Set the ColorRamp interpolation to B-Spline and move the black color
marker to the middle of the slider. Move the white color marker to the left
two-third of the remaining half of the slider. Click on the Add button to
create a new marker in between them and change its color to pure black.
4. Set the Mix node Blend Type to Add . Go to the Mapping node and set
Y Rotation to 90° .
Search WWH ::




Custom Search