Water Depth Shader - UE4 Materials 101 - Episode 24

Опубликовано: 12 Октябрь 2024
на канале: Ben Cloward
45,986
1k

In this video, we learn how to calculate the opacity of water. The opacity is based on both depth and viewing angle. We compute depth using the world space position, the camera postion, and the Scene Depth and Pixel Depth nodes. For viewing angle, we use the Fresnel node. And finally we add a DepthFade node to blend the edges of the water. Next week we'll add reflection and refraction to our water and have a complete water material.

------------------------------

Learn more!!

Other videos like this one:
   • Water Surface Overview | Live Trainin...  
   • Translucent Water Detail | Live Train...  
   • #3 How to Create Water in Unreal Engi...  

Web Resources
https://www.unrealengine.com/marketpl...
https://forums.unrealengine.com/commu...

Shader Book Recommendations
https://www.bencloward.com/resources_...
------------------------------

Learn to write shaders in HLSL:
   • HLSL Shader Creation 1 - HLSL Shader ...  
   • HLSL Shader Creation 2 - Light and Sh...  
   • HLSL Shader Creation 3: Surface Shadi...  

------------------------------

Theme Music
Peace in the Circuitry - TeknoAXE
http://teknoaxe.com/Link_Code_3.php?q...

Background Music
Speo - Still Young
   • Still Young