Foliage Camera Fade - UE4 Materials 101 - Episode 35

Опубликовано: 09 Октябрь 2024
на канале: Ben Cloward
13,024
371

In this tutorial, we learn how to make our foliage fade out when the camera approaches. This is useful to prevent obscuring the player character in close-up foliage or for hiding enemies or game-play elements. We build a material function that returns a zero when the camera is close and a one when the camera moves further away - and then we use that as a multiplier for our opacity mask. We also use Unreal's DitherTemporalAA node to make it appear that we're using transparency to fade out the foliage - but without the added expense of actually using transparency.

Other videos in this series:
   • UE4 Foliage and Vegetation  

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

Learn more!!
   • UE4 Near Camera Fade material tutorial  
   • Object Blending with Dither Fade, Pix...  
   • UE4 - Third Person Character Dissolve...  
   • UE4: How to fix translucent materials...  

Web Resources
http://wiki.polycount.com/wiki/Foliage

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 - Glitch Hop
http://teknoaxe.com/Link_Code_3.php?q...

Background Music
Speo - Still Young
   • Still Young