MENU

Fun & Interesting

Your first Volumetric Fog Shader | Unity URP

Technically Harry 10,732 5 months ago
Video Not Working? Fix It Now

A gentle introduction into creating a volumetric fog shader from scratch, explaining the overall logic behind volume raymarching. There's a lot this video doesn't cover but it should serve as a good entry point for game developers and artists that seek to understand volumetric effects. Link to the shader file: https://gist.github.com/HAliss/f84e3c482ea2ac9664a3048fa734093c Link to Sebastian Lague's Clouds video: https://www.youtube.com/watch?v=4QOcCGI6xOU Timestamps: 00:00 - Intro 00:35 - Patreon supporters 00:50 - Volumetric raymarching process 01:24 - Renderer feature setup 01:55 - Depth sampling 02:37 - World space reconstruction 03:10 - Raymarching setup 04:40 - Raymarching loop 05:40 - Making it pretty 06:18 - Blending the fog color 06:44 - Exponential fog falloff 07:12 - Reducing banding 08:57 - Density noise 10:36 - Lighting effects 12:59 - Light scattering 13:50 - Outro ✨Streams: https://www.twitch.tv/harryalisavakis/ ✨Bsky: https://bsky.app/profile/halisavakis.com ✨Twitter: https://twitter.com/HarryAlisavakis ✨Shader tutorials and more: https://halisavakis.com ✨Join the Discord server: https://discord.gg/e9XnPFv

Comment