Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Unreal Engine 5 Shaders and Effects Cookbook - Second Edition

You're reading from  Unreal Engine 5 Shaders and Effects Cookbook - Second Edition

Product type Book
Published in May 2023
Publisher Packt
ISBN-13 9781837633081
Pages 402 pages
Edition 2nd Edition
Languages
Concepts
Author (1):
Brais Brenlla Ramos Brais Brenlla Ramos
Profile icon Brais Brenlla Ramos

Table of Contents (12) Chapters

Preface 1. Chapter 1: Understanding Physically Based Rendering 2. Chapter 2: Customizing Opaque Materials and Using Textures 3. Chapter 3: Making Translucent Objects 4. Chapter 4: Playing with Nanite, Lumen, and Other UE5 Goodies 5. Chapter 5: Working with Advanced Material Techniques 6. Chapter 6: Optimizing Materials for Mobile Platforms 7. Chapter 7: Exploring Some More Useful Nodes 8. Chapter 8: Going Beyond Traditional Materials 9. Chapter 9: Adding Post-Processing Effects 10. Index 11. Other Books You May Enjoy

Taking advantage of mesh distance fields in our materials

You can say that each different recipe we’ve tackled in this book has explored something new within Unreal’s material creation pipeline. We’ve seen new material features, useful nodes, and smart shader-creation techniques, and this recipe is not going to be any different in that regard. Having said that, we are now going to look outside the Material Editor to tackle the next technique.

We are going to be focusing on a specific feature called Mesh Distance Fields, an attribute of the 3D models that we work with that will allow us to know how close or far we are from them – enabling us to change the appearance of a material based on that information. You can think of them as the visual representation of the distance from a volume placed around the model to the surface of the 3D mesh. This data gets stored as a volume texture, something that can be very useful for us as it allows us to create dynamic...

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 €14.99/month. Cancel anytime}