How to do it...

So far, we've used simple colors in our toy tank material – and even though they can look good depending on the type of visuals that we are after, we are going to use realistic textures this time. As usual, the assets we'll be using can be found in either the Starter Content package or the ones that we are providing with the book. Let's start:

  1. Duplicate the material we had previously created in the first recipe of this chapter, which was M_ToyTank. This is going to be useful, as we don't want to reinvent the wheel so much as expand a system that already works. Having everything separated with masks and neatly organized will speed things up greatly. Name the new asset however you like I've gone with M_ToyTank_Textured.
  2. Open ...

Get Unreal Engine 4 Shaders and Effects Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.