This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Unreal Engine – Tricubic Sampling for Volumetric Fog | |
| # This method provides better terminators, hiding the aliasing | |
| ## 1. Paste the function | |
| Navigate to: Engine/Shaders/Private/HeightFogCommon.ush | |
| At the top of the file (ex. after FogStructData struct) insert the following function: | |
| // tricubic interpolation function for sampling the volumetric fog 3D texture | |
| // ported from https://www.shadertoy.com/view/cts3Rj |