As we are about to create a new type of translucent material, it's always good to think about what we want to achieve before we begin. We've dealt with different types of translucent surfaces in the past, but this time things won't be as straightforward as before. The reason for that lies within the specific asset that we want to create: water. Unlike glass, water is a material that is rarely found resting perfectly still. Its condition as a fluid means that it is almost always in motion, and that introduces certain conditions that we need to take into account, such as how the normals of the material are going to be animated, how the direction of those affect the color of the material, and how the opacity changes across the ...
How to do it...
Get Unreal Engine 4 Shaders and Effects Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.