Book Image

Unreal Engine 4 Shaders and Effects Cookbook

By : Brais Brenlla Ramos, John P. Doran
Book Image

Unreal Engine 4 Shaders and Effects Cookbook

By: Brais Brenlla Ramos, John P. Doran

Overview of this book

Unreal Engine 4 is a powerful game engine, one which has seen a recent boost in widespread adoption thanks to its ease of use and the powerful rendering pipeline that it packs. Seeing as how it's relatively easy to create stunning presentations and visuals, Unreal has quickly become a strong contender in industries where this kind of software had been previously denied entry. With that in mind, this book aims to help you get the most out of Unreal Engine 4 - from creating awe-inspiring graphics to delivering optimized experiences to your users. This is possible thanks to a mixture of hands-on experience with real materials and the theory behind them. You will immediately know how to create that material that you want to display, and you'll also end up with the knowledge that will let you know how to control it. All of this will be done without losing sight of two key components of any real-time application - optimization, and efficiency. The materials that you create will be light and efficient, and they will vary depending on your target platform. You'll know which techniques can be used in any kind of device and which ones should be kept to high-end machines, giving you the confidence to tackle any material-related task that you can imagine. Hop onboard and discover how!
Table of Contents (16 chapters)
Title Page
Copyright and Credits
About Packt
Contributors
Preface
Index

Creating materials for mobile platforms


When developing materials for mobile platforms, there are some things to keep in mind. Due to a number of hardware limitations, you can't expect to be able to do everything that you perhaps used to with the Material Editor. As you spend more time building materials for mobile devices, you will discover that there are often trade-offs that are required, reducing complexity for the sake of your application size or frame rate. This recipe will discuss the creation of materials with mobile platforms in mind.

Getting ready...

Any textures that you want to use on mobile platforms need to have a resolution of 2,048 x 2,048 or lower, preferably a square texture with a power of 2 (64, 128, 256, 512, 1,028, 2,048) as that is the most efficient use of memory.

Note

For more information on creating textures for mobile platforms in UE4, check out https://docs.unrealengine.com/en-us/Platforms/Mobile/Textures.

How to do it...

To get started, we will first create a standard...