Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unreal Engine 4 Shaders and Effects Cookbook

You're reading from   Unreal Engine 4 Shaders and Effects Cookbook Over 70 recipes for mastering post-processing effects and advanced shading techniques

Arrow left icon
Product type Paperback
Published in May 2019
Publisher Packt
ISBN-13 9781789538540
Length 524 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Brais Brenlla Ramos Brais Brenlla Ramos
Author Profile Icon Brais Brenlla Ramos
Brais Brenlla Ramos
John P. Doran John P. Doran
Author Profile Icon John P. Doran
John P. Doran
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Title Page
Copyright and Credits
About Packt
Contributors
Preface
1. Physically Based Rendering FREE CHAPTER 2. Post-Processing Effects 3. Opaque Materials and Texture Mapping 4. Translucent Materials and More 5. Beyond Traditional Material Uses 6. Advanced Material Techniques 7. Using Material Instances 8. Mobile Shaders and Material Optimization 9. Some Extra Useful Nodes 1. Other Books You May Enjoy Index

Adding randomness to identical models


The first recipe we'll tackle in this last chapter is going to deal with a specific type of model instances. You might have heard about this type of asset before, as they are a common feature in many different 3D content creation packages. We use that name to refer to identical copies of an asset that get scattered throughout our scenes, where each duplicate is easier to render than if we were dealing with different models altogether. This can be a very cool technique to use when we deal with vegetation or whenever we want to place multiple similar meshes.

However, more often than not, we also want to change how each instance looks or at least add a little bit of variety to each of them—a task that isn't always easy. In this chapter, we'll explore a simple little node that will let us do just that, and assign a random value to each instance so that we can alter their look within our materials. Let's see how that's done:

Getting ready

As we always say, you...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime