
What Is Volumetric Lighting? How Renderers Light Fog, Haze and Smoke
Overview
Introduction
What is volumetric lighting? Volumetric lighting is light that becomes visible as it travels through a medium such as fog, haze, smoke or dust, because particles in the air scatter part of that light toward the camera. The visible beams it produces are what artists call god rays, light shafts or crepuscular rays.
Offline renderers such as V-Ray, Arnold, Cycles and Redshift simulate the medium and compute how light is absorbed and scattered at many points inside it, while real-time engines approximate the look inside a frame budget of milliseconds. Either way, it adds depth and scale: a sunbeam through an archviz interior window, haze over a city at dusk, a flashlight cutting through smoke in a VFX shot.
It is also one of the most expensive things you can ask a path tracer to do. This guide covers the physics in plain terms, how renderers compute it, how games and compositors approximate it, and why one foggy shot can take several times longer per frame. For the ideas it builds on, see our explainers on global illumination and ray tracing.
Volumetric Lighting in One Paragraph
Wikipedia's article on volumetric lighting (read 24 November 2026) describes it as a 3D graphics technique that lets the viewer see beams of light shining across the environment, as if the light passed through fog, dust, smoke or steam, and gives "god rays" as another name. Wikipedia's crepuscular rays page (read 24 November 2026) describes visible shafts of sunlight that appear when the Sun is just above or below a layer of clouds, and lists "god rays" among their everyday names. You see particles redirecting some of the beam's light into your eye, and the shadowed gaps make the bright parts read as shafts. Volumetric lighting is wider than god rays, though: it also covers even haze, glowing smoke and clouds that show no distinct beams.
The Physics in Plain Terms: Absorption, Scattering and Emission
Renderers call fog, smoke, dust, clouds and murky water participating media: materials that interact with light along the whole path through them, not only at a surface. Three things can happen to light inside them, and Maxon's introduction to volumetric rendering for Redshift (read 24 November 2026) maps each one to a surface idea artists already know:
- Scattering is the volume's counterpart to a diffuse color. Particles redirect light into new directions.
- Absorption is the counterpart to transparency. Particles remove light from the ray.
- Emission is the counterpart to incandescence or self illumination. Fire and glowing gas add their own light.
Scattering works both ways. Light scattered out of a ray dims whatever lies behind the fog, while light scattered into a ray from a lamp or the sun brightens the fog itself. A god ray is mostly that second part, in-scattering, seen against a darker background. Absorption plus out-scattering is called extinction.
Density scales all of this: how much medium sits in each unit of space. Blender's Principled Volume node (Blender 5.2 LTS manual, read 24 November 2026) combines all volume shading components into a single node, and its inputs follow the same physics: a scattering Color, Density, an Absorption Color described as a volume shadow color tint, Emission Strength, and Anisotropy for the backward or forward scattering direction. A Density Attribute reads a volume grid, which is how a simulation drives it.
A homogeneous medium has the same density everywhere, like an even haze filling a room. A heterogeneous medium varies from point to point, like a smoke plume, a cloud or a fire, and its density usually comes from a 3D grid.
Phase Function and Anisotropy
When light scatters inside a medium it does not scatter equally in all directions. The rule that describes where it goes is called the phase function, and it plays the role a BSDF plays for a surface (our guide to what a shader is explains BSDFs).
Blender's Volume Scatter node (Blender 5.2 LTS manual, read 24 November 2026) lets light be scattered as it passes through the volume and offers several phase functions. In Cycles, Rayleigh describes scattering by particles smaller than the wavelength of light, the case of sunlight in Earth's atmosphere, and Mie describes scattering by particles larger than the wavelength of light, such as cloud and fog. The Anisotropy input controls the relative amount of backward and forward scattering.
Anisotropy changes how god rays look more than almost any other setting. In the widely used Henyey-Greenstein model, zero scatters light evenly, positive values push it onward in the direction it was traveling, and negative values send it back toward the source. Fog and haze scatter strongly forward, which is why sunbeams look brightest when you look toward the sun. If beams look flat in a render, check anisotropy first.
Transmittance and the Beer-Lambert Law
The other half of the physics is how much light survives a trip through the medium. Wikipedia's Beer-Lambert law article (read 24 November 2026) gives the exponential attenuation law, I = I0 e^(−μd): intensity falls exponentially with the attenuation coefficient μ and the distance d. The fraction that gets through is called the transmittance.
In plain terms, every equal length of uniform fog removes the same fraction of the light that enters it. As an illustrative example, if 10 meters of fog lets half of the light through, 20 meters lets through a quarter and 30 meters an eighth. That is why distant objects fade so quickly in dense fog. Renderers need transmittance twice: along the camera ray, to know how much of the background and the glowing fog reaches the camera, and toward every light, to know how much light reaches each point inside the fog. The second one draws the shadows inside a beam, and it is where most of the cost hides.
How Renderers Compute Volumetric Lighting
Offline renderers usually offer two places for a medium to live.
World or global volumes fill the whole scene with a medium. In Blender a volume shader on the World does this, and the world settings page (read 24 November 2026) recommends Equiangular sampling when a light sits inside or near the volume. Chaos's VRayEnvironmentFog documentation (V-Ray for Maya, read 24 November 2026) calls it an atmospheric effect that allows the simulation of participating media. Arnold's Atmosphere Volume in 3ds Max (read 24 November 2026) simulates light scattered by a thin, uniform atmosphere and produces shafts of light and volumetric shadows cast from geometric objects.
Object volumes fill a bounded shape: a mesh with a volume shader, or a voxel grid loaded from a file. Maxon's introduction calls OpenVDB the de facto standard for storing volumetric data and says OpenVDB files are to volume rendering what EXR files are to HDR images. Smoke, fire and cloud simulations are usually cached as VDB files and rendered this way.
The classic way to render either kind is ray marching. A camera ray enters the medium and the renderer steps along it at a fixed interval, the step size. At each sample point it reads the density, works out how much light arrives from each light (which needs a shadow ray toward the light), adds the in-scattered light weighted by the transmittance back to the camera, and moves on. It stops when the ray leaves the volume, when the fog in front is too dense for anything behind to matter, or at a maximum number of steps. Maxon's page says Redshift ray marches through the volume, sampling voxel by voxel as the ray traverses the medium.
Diagram of ray marching through a fog volume: a camera ray enters the fog and is sampled at evenly spaced points, each sample point sends a shadow ray toward a light, an occluder blocks part of the light so a bright light shaft forms beside a shadowed gap
The VRayEnvironmentFog page says the fog uses one of two algorithms: a simple exponential sampling scheme when no texture maps are specified, and a raymarching scheme when any of the volume properties are mapped with a texture. Its Step Size determines the size of one step through the volume, and Max Steps sets the maximum number of steps.
Cycles goes the other way by default. The Volumes render settings page (Blender 5.2 LTS, read 24 November 2026) says the default volume rendering algorithm is based on null scattering, which is unbiased and has fewer artifacts but could be noisier, while a Biased option uses ray marching, with controls for step size and max steps. Null-scattering methods such as delta tracking pick random distances along the ray instead of a fixed step, trading step-size artifacts such as banding for noise that more samples remove. In Biased mode, Step Rate is a global multiplier on the step size (increase it to reduce render time, at the cost of losing detail), and Max Steps protects from extremely long render times.
Why Volumes Are So Expensive to Render
A surface is evaluated where a ray hits it. A volume is evaluated all along the ray, and lighting it needs more rays inside the ray. That nesting is the root of the cost.
Steps multiply. Here is an illustrative example with invented distances, for a renderer that ray marches both the camera ray and the shadow rays. A camera ray crosses 20 meters of fog, and the light is 10 meters away through the same fog. With a step size of 0.2 meters the camera ray takes 100 steps, and each step sends a shadow ray that takes 50 steps toward the light: 5,000 density lookups for the shadow rays of one camera sample. Halve the step to 0.1 meters and both counts double, to 200 steps and 100 shadow steps, for 20,000 lookups, 4 times as many. Halve it again to 0.05 meters (400 steps and 200 shadow steps) and the total reaches 80,000, 16 times the first setting. Halving the step size can therefore quadruple the work, not double it. Real renderers use shortcuts, such as closed-form transmittance for uniform fog and stopping early in dense media, but the scaling explains why step size is the first lever to check.
Bar chart of the illustrative ray marching example: step size 0.2 meters gives 5,000 shadow-ray density lookups per camera sample, 0.1 meters gives 20,000 (4 times), and 0.05 meters gives 80,000 (16 times)
Thin media are noisy. In light haze few paths scatter at all, so each pixel gathers few useful samples. Autodesk's Arnold guide on removing noise (read 24 November 2026) says atmosphere volume noise will occur within the shadowed regions of a beam of light, and that this noise is caused by a lack of samples in the atmosphere volume shader. Maxon's troubleshooting checklist says to raise the light samples first, since lights dominate volume noise, and notes that scattering heavy media need more samples than absorption heavy ones.
Bounces multiply too. Light that scatters many times inside a cloud gives it a soft, glowing core. Maxon's page says simulating this multiple scattering means following each ray through many additional bounces, and every added bounce multiplies work, which it calls the honest reason volume rendering has a reputation for being slow. Cycles has a separate Volume bounce limit, and V-Ray's fog has Scatter GI with a Scatter Bounces count. That is where volumetric lighting meets global illumination: the two are separate effects, but when volume scattering is allowed to feed indirect light, every GI bounce also travels through the medium.
Denoisers help less. Maxon notes that volumes are harder to denoise than surfaces, because the helper data that guides a denoiser, such as surface normals, does not exist inside a cloud. A denoiser that cleans a floor well can smear a thin beam. Our denoising guide explains what denoisers rely on; with volumes, plan for more samples rather than a heavier denoise.
Memory can stop a GPU render. Maxon's page, written for Redshift, says volumes must fit entirely into GPU memory, so in Redshift a VDB that exceeds available VRAM will abort the render rather than slow it down. Other engines behave differently: the Blender manual's GPU rendering page (read 24 November 2026) says that with CUDA, OptiX, HIP and Metal devices, if the GPU memory is full Blender will automatically try to use system memory, at a performance cost.
Real-Time Volumetric Lighting: Froxels and Screen-Space Shafts
Games cannot spend minutes per frame, so they approximate. Epic's Volumetric Fog documentation for Unreal Engine 5.9 (read 24 November 2026) says the effect computes participating media density and lighting at every point in the camera frustum, using relatively low-resolution voxels aligned to the camera frustum. Graphics programmers often call these frustum-aligned voxels froxels. A heavy temporal reprojection filter with a different sub-voxel jitter per frame hides the low resolution, at the price that fast-changing lights such as flashlights leave lighting trails. The page gives a cost of about 1 millisecond on PlayStation 4 at High settings and 3 milliseconds on an NVIDIA GeForce GTX 970 on Epic settings.
Cheaper approaches remain common. Wikipedia's volumetric lighting article describes a method built on a light space shadow map and a depth buffer, and a screen-space method that blurs luminous objects away from the center of the main light source. The screen-space version is cheap, but it only works while the light source is on screen. Our real-time vs offline rendering guide compares the two worlds.
How Artists Fake Volumetric Lighting
Not every beam needs a simulated medium. Production teams mix real volumes with cheaper tricks:
- Cards. A soft gradient texture on a plane can read as a sunbeam from a fixed camera angle. It costs almost nothing, but it breaks when the camera moves around it or when objects should cast shadows into the beam.
- Depth fog in compositing. A depth pass lets the compositor add distance haze after the render, with no extra render time.
- A separate volume pass. Rendering the fog as its own pass or AOV lets you balance it in compositing without re-rendering. Our guide to AOVs in rendering explains how passes are split and recombined.
- Hybrid. A real volume for the hero beams and comp haze for the background is a common compromise.
Render-Time Levers for Foggy Shots
| Lever | What it changes | Trade-off |
|---|---|---|
| Step size or step rate | Fewer samples along each ray | Fine wisps can disappear, and banding can appear |
| Max steps | Caps the work per ray | Too low and the volume is cut off early |
| Uniform density instead of textured density | Can let the renderer skip ray marching, as V-Ray's exponential scheme does | No wisps or variation in the fog |
| Volume bounces or Scatter GI | Fewer scattering bounces inside the medium | Dense smoke and clouds can look darker and flatter |
| Light or volume samples | Less noise in thin beams and shadowed gaps | More time per sample |
| VDB resolution | Fewer voxels to read and store | Lower detail in the simulation |
| Separate pass in compositing | Re-balance fog without re-rendering | One more layer to manage |
Change one lever at a time on a test frame from the foggiest part of the shot. Our render time optimization guide covers the wider set of settings.
Volumetric Lighting on a Render Farm
On a farm, the cost of volumes shows up directly in job time. Here is an illustrative shot with invented timings, to show the scale rather than to predict any real job. A 250-frame shot renders at 12 minutes per frame without fog. Add a volumetric haze that makes each frame 3 times longer, 36 minutes. On one machine the clear shot needs 50 hours and the foggy one 150 hours. Spread over 50 machines, ignoring upload and queue time, that is about 1 hour against about 3. Per-frame time on farm hardware differs from a workstation, so test the heaviest frame first.
Illustrative arithmetic for a 250-frame shot: 12 minutes per frame without fog is 50 hours on one machine, a fog that triples frame time to 36 minutes is 150 hours, and spread over 50 machines the two take about 1 hour and about 3 hours
On our farm, V-Ray and Corona in 3ds Max, Arnold in Maya, 3ds Max and Cinema 4D, and Karma and Mantra in Houdini render on CPU nodes, which covers a common volumetric case: an archviz interior with sunbeams through a window. Cycles in Blender runs on both our CPU and GPU nodes. Redshift in Maya and Cinema 4D renders on our GPU cloud render farm; on our farm Redshift runs in GPU mode only. The supported software page lists the engines for each host.
Each GPU node carries two RTX 5090 cards with 32 GB of VRAM per card, and memory is per card and is not pooled, so plan for a GPU scene with its VDB caches to fit in 32 GB. A heavy simulation that does not fit is better rendered with a CPU engine; our article on the RTX 5090 VRAM limit for complex scenes covers how to check.
Cost follows time: GPU rendering costs $5.17 per RTX 5090 card-hour and CPU rendering at Standard priority $0.99 to $1.27 per worker-hour, so a fog setting that triples frame time also triples the bill. Current rates are on the pricing page. New accounts receive $25 free render credits, which can cover test frames of the foggiest part of a shot, and our team is on 24/7 live chat for scene checks.
Summary: What to Remember
| If you are asking | Short answer |
|---|---|
| What is volumetric lighting? | Light made visible by scattering in fog, haze, smoke or dust |
| What makes god rays visible? | In-scattering inside the beam, set against shadowed gaps |
| What controls the look? | Density, scattering and absorption color, emission, and anisotropy |
| How do renderers compute it? | Ray marching with a step size, or unbiased null scattering with random distances |
| Why is it slow? | Steps, shadow rays, samples and bounces multiply inside every pixel |
| How do games do it? | Low-resolution frustum voxels with temporal filtering, or screen-space blur |
| What matters on a farm? | Test the foggiest frame, tune step size and samples, and fit GPU volumes in 32 GB per card |
FAQ
Q: What is volumetric lighting in simple terms? A: Volumetric lighting is light you can see in the air because fog, haze, smoke or dust scatters part of it toward the camera. Renderers produce it by simulating that medium, or approximate it in real time, and the visible beams are often called god rays or light shafts.
Q: What is the difference between volumetric lighting and god rays? A: God rays are one visible result: shafts of light with shadowed gaps between them. Volumetric lighting is the wider technique, which also covers even haze, glowing smoke and clouds with no distinct beams. Crepuscular rays are the natural version, seen when the Sun is just above or below a layer of clouds.
Q: Why does volumetric lighting make renders so slow? A: A volume is evaluated all along each ray, and every sample point also needs shadow rays toward the lights. Steps, shadow rays, samples and bounces multiply, so halving the step size can quadruple the work when shadow rays are marched too. Volumes are also harder to denoise, so they often need more samples.
Q: How do I reduce render time with volumetric fog? A: Start with step size or step rate, then light or volume samples, then volume bounces, changing one at a time on a test frame from the foggiest part of the shot. Uniform fog can be cheaper than textured fog, and a separate fog pass lets you rebalance it in compositing without re-rendering.
Q: Is volumetric lighting the same as global illumination? A: No. Global illumination is light bouncing between surfaces, while volumetric lighting is light scattering inside a medium. They meet when volume scattering is allowed to feed indirect light, as with V-Ray's Scatter GI option, and then every GI bounce also travels through the medium.
Q: How do games render volumetric lighting in real time? A: Engines such as Unreal Engine compute fog density and lighting in a low-resolution grid of voxels aligned to the camera frustum and smooth it with temporal filtering across frames. Cheaper methods blur bright areas away from an on-screen light source. Both cost milliseconds per frame, with less accuracy than offline rendering.
Q: Can volumetric scenes be rendered on a GPU render farm? A: Yes, as long as the scene and its volume caches fit the memory of one GPU. On our farm each RTX 5090 has 32 GB of VRAM and memory is not pooled across the two cards in a node. In Redshift a VDB that exceeds available VRAM aborts the render rather than slowing it down, while Cycles tries to use system memory at a performance cost. Heavier volumes can render on our CPU nodes with V-Ray or Corona in 3ds Max, Arnold in Maya, 3ds Max or Cinema 4D, or Karma in Houdini.
About Thierry Marc
3D Rendering Expert with over 10 years of experience in the industry. Specialized in Maya, Arnold, and high-end technical workflows for film and advertising.



