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

Water caustics


Nailing down the right look for a water surface can greatly increase the realism of our scenes, especially when dealing with tricky materials, such as the ones that make use of translucency. Getting those nice reflections to show up, the refraction working in the right way, and the animation to feel believable is something we tackled in the previous recipe. On top of that, we can add an extra effect that is often seen in bodies of water: caustics.

This technique, which tries to mimic how the refracted envelope of light rays that the surface of our water body is projecting onto another object works (the bathtub, in our case), is difficult to calculate in real-time renderers. That being the case, we usually rely on approaches that try to fake the effect rather than realistically show it. We'll be exploring one such method in the following pages.

Getting ready

Since this recipe is going to follow in the footsteps of the previous one, there's nothing new that you'll need. All of...