top of page
  • Writer's pictureJayden Zhang

Curve Based Exponential Fog - Unreal Engine 4

Updated: Dec 19, 2019

Curve Based Exponential Fog

Credit

AdvancedVillagePackage - Marketplace


Final Result

Goal and Scope

The goal of this project is to create a flexible and believable exponential fog in Unreal Engine 4 based on Direct3D 9's Exponential Fog Equation


Core Logic

First, implement the equation of exponential fog as a barebone:

Then, blend the fog factor with:

After that, use a curve to control the color based on the distance between the camera:


Execution

First, implement basic exponential fog:

Then, the original color is simply the scene color:

Here, a height based mask was calculated (use one minus because we want the bottom part to be opaque):

Finally, blend them together:


Full Graph


272 views0 comments

Recent Posts

See All

Comments


bottom of page