← All resources

Creating a Volumetric Ray Marcher

Auto-discovered

Blog Intermediate

Various

Visit resource ↗

Description

Ryan Brucks's Shaderbits article builds a volumetric ray marcher for Unreal Engine 4 using custom HLSL material nodes. It follows posts on flipbook pseudo volume textures and heightmap marching to render density inside mesh bounds.

The write-up covers Beer-Lambert transmittance, PseudoVolumeTexture sampling along the camera ray, plane-aligned jitter, thickness limits, and scene-depth clipping for sorting against opaque geometry.

Readers should know Unreal's material editor and can patch Engine/Shaders/Common.usf via the linked helper. It assumes uniformly scaled box meshes and atlased slices for 3D density lookup.

Sections add nested shadow marches, early-out thresholds, and temporal jitter, with sample code and a wisp texture for step tuning.

The post is widely cited in Epic forums and UE5 tutorials adapting VolumeBoxIntersect-style marchers for procedural clouds and fog.