408 Game Development and Simulation with Unreal Technology
2. Right-click on the Mat_LScape _Simple material we created in Tutorial 7.3
and duplicate it.
3. Rename the duplicated material to Mat_LScae_Textured.
4. Double-click the Mat_LSc ae_Textured material to open it in the material editor.
SETTING UP LAYER NETWORKS
With the new material opened in the Material Editor, let us go ahead a nd use
some textures instead of the simple color 3Vectors for the Sand and Grass.
5. Right-click to the left of the Sand Color vector and create a Texture Sa m ple
expression. Remember, you can alternatively create this expression by holding the
T key and click ing on the gr aph editor.
6. In th e Details rollout of this texture sample look fo r and apply the
T_Ground_Gravel_D texture. To do this, click on the drop-down box in front
of the Texture section and search for this texture. This is one of the textures that
comes with the UE 4’s Starter Contents.
7. Type Gravel Tex ture in the Description tag of this expression.
8. Move the Sand Color vector out of the way and connect the RGBA chan nel of
the Gravel Texture expression to the Layer input channel of the SandLayer
expression.
9. Right-click to the left of the Grass Colo r vector and cr eate a Texture Sam-
ple expression. Remember, you can alter natively create this expression by holding
the T key and clicking on the graph editor.
10. In the Details rollout of this texture sample, look for and apply the
T_Ground_Grass_D texture. To do this, click on the drop-down box in front of
the Texture section and search for this texture. This is one of the textures that
comes with the UE 4’s Starter Contents.
11. Type Grass Textu re in the Description tag of this expression.
12. Move the Grass Color vector out of the way and connect th e RGBA channel
of the Grass Texture expre ssion to the Layer input channel of the GrassLayer
expression.
13. Right-cl ick below the Snow Color vector and create a Texture Sample ex-
pression. Remember, you can alternatively create this expression by holding the
T key and click ing on the gr aph editor.
14. In the Details rollout of this texture sample, look for and apply the
T_Perlin_Noise_M texture. To do this, click on the drop-down box in front of
the Texture section and search for this texture. This is one of the textures that
comes with the UE 4’s Starter Contents.
15. Type Snow Noise Texture in the Description tag of this expression.
16. Right-cl ick to the right of both the Snow Noise Texture and the Snow
Color and place a Multiply expression.
17. Connect the output of the Snow Color to input A and the RGBA o utput of the
Snow Noise Texture to input B of this Multiply expression.
18. Connect the output channel of the Multiply expression to the Layer input channel
of the SnowLayer expression.