Unreal Engine 4 Shaders and Effects Cookbook by Brais Brenlla Ramos

Unreal Engine 4 Shaders and Effects Cookbook by Brais Brenlla Ramos

Author:Brais Brenlla Ramos [Brais Brenlla Ramos]
Language: eng
Format: epub
Tags: COM012000 - COMPUTERS / Computer Graphics, COM072000 - COMPUTERS / Computer Simulation, COM051070 - COMPUTERS / Programming Languages / C++
Publisher: Packt
Published: 2019-05-27T06:04:45+00:00


How to do it...

As we said before, caustics are usually faked within the engine rather than computed in real time as there's no current method that allows for that operation to run at a high refresh rate. As such, we'll fake them with something called a light function, which is a type of asset that is applied to lights in UE4. With that in mind, let's first place the light that will support this technique:

Add a Spot Light to the scene. This type of light is quite helpful when dealing with caustics, since it has a couple of parameters (the Outer Cone Angle and the Inner Cone Angle) that allow us to have a nice area where the light isn't fully on or off.

Place the Spot Light slightly above the water plane and tilt it a little bit, like in the following screenshot:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.