To add volumetric fog and god rays in Blender, put a cube around the part of the scene the camera sees, give it a material with a Principled Volume shader in the Volume socket (density about 0.04, anisotropy about 0.6), and let a sun shine in through a window or between trees. The light shafts appear where the sun's light crosses the fog. Do not put the fog in the World for a sunlit scene: in my tests a World volume turned the whole render black, in EEVEE and in Cycles.
I tested every step below in Blender 5.2.2 with headless renders of the same scene: a 10 by 24 by 8 m hall with three windows and a sun coming in at 34 degrees. Every picture is a real render, and every time is measured around the render call on an Apple M5 Mac at 960 by 540. EEVEE ran on the GPU, Cycles on the CPU with 64 samples.
Key takeaways
- A box of fog with Principled Volume, fitted around the room, gave clear god rays in EEVEE in under 2 seconds and in Cycles in about 12 seconds (CPU, 960 by 540, 64 samples).
- A World volume made the sunlit hall completely black at a density of 0.02 and at 0.0005, in both engines.
- Anisotropy is what makes the shafts bright: at 0 the fog is an even haze, at 0.8 the shafts glow when you look towards the light.
- A fog box smaller than the view shows a hard edge in mid-air; make it cover everything the camera sees.
- The free Mistwright Lite fits the fog box to the camera and adds the sun in one click; the paid Mistwright adds fast Draft renders, sun aiming through a window, fog beams and wind.

What god rays need: fog, a light and something that blocks it
God rays are light you see in the air. You only see light in the air when there is something in the air to scatter it, so Blender needs a volume: a mesh with a volume shader, or a volume in the World. Then the light must be partly blocked. A sun shining on an open plane lights all the fog evenly and gives a bright haze, not shafts. A wall with windows, a row of trees or columns cut the light into beams, and the fog shows the beams.
So the recipe has three parts: a fog volume that covers what the camera sees, a light (a sun is the simplest), and an opening the light comes through. The test hall has all three: three windows in the right wall and a sun outside.
Why not put the fog in the World?
Blender lets you plug a volume shader into the Volume socket of the World. It looks like the obvious place for fog: no object, fog everywhere. For a scene lit by a sun it does not work.
I connected a Volume Scatter node with a density of 0.02 to the World Output's Volume socket. EEVEE rendered a black frame. Cycles rendered a black frame. I lowered the density to 0.0005, which is almost nothing over a 24 m hall, and both engines still rendered black.

The reason is distance. A World volume fills all of space, without an end. A sun in Blender is infinitely far away, and so is the World background. Any density, however small, times an infinite distance blocks all of the light before it reaches the hall. The fog has nothing left to scatter and the walls get no sun.
A World volume can still work in a scene lit only by lamps inside it, but for god rays from the sun use a fog box.
Step by step: a fog box with Principled Volume
These steps make the fog in the pictures above. They work the same in Blender 4.2 and newer.
- Add a cube. In the 3D Viewport press
Shift+A> Mesh > Cube. - Make it cover the view. Scale and move it (
S,G) so it fills the room, or at least everything the camera sees. My box is exactly the inside of the hall: 10 by 24 by 8 m, centred at 4 m height. The camera may be inside the box. - Give it a fog material. Open the Material properties, press New. Switch the area to the Shader Editor, delete the Principled BSDF node, add
Shift+A> Shader > Principled Volume and connect its Volume output to the Volume input of the Material Output. The Surface input stays empty, so the cube itself is invisible. - Set the density and anisotropy. On the Principled Volume node set Density to 0.04 and Anisotropy to 0.6. Leave the color white for neutral fog.
- Light it. Add a sun (
Shift+A> Light > Sun) and turn it so its light comes in through the windows. My sun comes from 12 degrees azimuth at 34 degrees elevation, strength 7. - Look at it. Switch the viewport to Rendered shading and look through the camera (
Numpad 0), or pressF12(on a MacFn+F12when F12 changes the sound volume; useCmdwhere Windows usesCtrl).

If you see nothing, check three things: the viewport is in Rendered mode, the Principled Volume goes into the Volume socket (not Surface), and the sun actually reaches the inside of the box.
How thick should the fog be?
Density is in units per metre, so the right value depends on the size of your scene. In the 24 m hall, 0.005 is barely visible, 0.02 to 0.04 gives clear shafts, and 0.1 starts to hide the far end of the hall in a bright haze.

A scene ten times smaller needs about ten times the density for the same look, and a 100 m street needs much less. Change density in small steps and look through the camera each time.
Anisotropy makes the shafts glow
Anisotropy decides where the fog sends the light. At 0 it scatters the same amount in every direction and the fog looks like an even grey haze. At positive values it sends more light forwards, along the sun's direction, so the shafts glow when the camera looks towards the light. Negative values send light back towards the light.

For god rays use 0.5 to 0.8. Anisotropy only helps when the camera looks roughly towards the light: from behind, with the sun at your back, the shafts get dimmer.
The sun angle decides where the shafts land
The shafts follow the sun. A low sun makes long shafts that reach deep into the room; a high sun makes short, steep shafts close to the windows. Rotate the sun and watch the patches on the floor: the shafts always end there.

To make shafts come in through a particular window, aim the sun from outside through that window towards the middle of the floor. A few degrees of rotation can move a shaft from a window onto the wall next to it, so rotate in small steps with the camera view open.
EEVEE settings for fog
EEVEE renders fog in a grid of cells, not per pixel. The settings are in the Render properties, panel Volumes:
- Resolution: the cell size in pixels. The default is 1:8. 1:2 or 1:4 gives crisper shaft edges and costs memory.
- Steps: how many samples are taken in depth. The default is 64; 128 gives smoother fog.
- Volume Shadows: lets the fog shade itself. Off by default and expensive.

In my hall the defaults already gave usable shafts in 0.99 seconds at 960 by 540. Resolution 1:2, 128 steps and volumetric shadows took 1.8 seconds and made the shaft edges cleaner, most visibly along the window frames. Thin fog like this gains little from volumetric shadows; thick fog gains more. Work with the defaults and raise them for the last render.
Cycles: same material, slower and more physical
Cycles uses the same Principled Volume material, nothing to change. It traces the light through the fog, so the shafts are physically correct, and you also see sunlight bouncing off the lit floor onto the walls.

At 960 by 540 with 64 samples and denoising, Cycles took 11.7 seconds on the CPU, against 1.8 seconds for the tuned EEVEE render. The same hall without fog took 8.7 seconds, so the fog added about a third. In Blender 4.2 to 4.5 the Cycles volume settings in Render properties > Volumes are Step Rate (1 by default, higher is faster and coarser) and Max Steps (1024). In Blender 5.0 and newer Cycles renders volumes unbiased by default, and those two settings only apply when you turn on Biased; my renders used the default.
One difference between the engines: in Cycles the fog box dims the sunlight on its way into the room, and that depends on the box's shadow visibility. With Object properties > Visibility > Ray Visibility > Shadow turned off on the fog box, my Cycles render was about 12% brighter on average than with it on (Blender's default). The EEVEE renders were identical.
Mistakes that break the fog
The box is smaller than the view. When part of what the camera sees is outside the fog box, you get a hard line in mid-air where the fog stops. Make the box cover everything the camera sees, from the camera to the far wall.

The box has a surface shader. If the cube keeps its Principled BSDF in the Surface socket, it renders as a solid grey block. Only the Volume socket should be connected.
The fog is in the World. As shown above, a World volume blacks out a scene lit by a sun.
The room has no opening. A closed room lets no sunlight in, and the fog stays dark. God rays need a window, a door or a gap.
The camera moved. A box fitted by hand has to be fitted again after every bigger camera move.
Free: fit the fog to the camera with Mistwright Lite
The step that takes the longest by hand is the box: scaling it to the room, then scaling it again after the camera moves. Mistwright Lite, the free and open-source version of Mistwright, does that part and the sun with it.
- Download
mistwright-lite-1.0.0.zipfrom the GitHub release, itch.io or Gumroad (pay what you want, $0 is fine). Do not unzip it. Safari unzips downloads by itself: turn off "Open safe files after downloading" or use another browser. - Install it: Edit > Preferences > Get Extensions, the arrow menu at the top right, Install from Disk..., pick the zip.
- In the 3D Viewport press
Nand open the Mistwright tab. - Pick a preset: God Rays for shafts through windows or between trees, or Morning Mist for a soft warm mist that thins out with height.
- Press Fog to Camera. Lite puts a fog box around what the camera sees, up to 100 m, cut down to your scene, so a room keeps the fog inside its walls. It builds the fog material, adds a sun if the scene has none (in a room it aims it through the window) and sets the render settings for EEVEE and Cycles. Fog to Scene wraps all visible objects instead, for any camera angle.
- Change Density and Color of the fog and Direction and Elevation of the sun with the sliders. The Rendered viewport follows while you drag.
- Remove Fog deletes everything Lite added and puts your render settings back. One
Cmd+Z(Ctrl+Zon Windows and Linux) also undoes Fog to Camera in one step.

Lite renders at one fixed quality, Standard: in EEVEE 32 samples and 64 fog steps, in Cycles 64 samples with denoising. It has no Re-fit button: after a bigger camera move, press Fog to Camera again. It is the fog box from the steps above, fitted in one click. Fog to Camera is also in the Add > Volume menu of the 3D Viewport.
One click with everything: Mistwright
Mistwright is the full add-on, $8 at launch until 27 December 2026, then $10. On top of Lite it has:
- Draft and Final. One switch sets the fog quality for EEVEE and Cycles together. In the same hall, EEVEE Draft rendered in 0.32 s, faster than my hand-made box at Blender's defaults (0.99 s). Final, for the last frame, uses much higher quality settings and took 8.0 s; in Cycles Draft took 17 s and Final 97 s. Draft and Final of the same frame have a pixel correlation of 0.998 in EEVEE and 0.999 in Cycles, so you can work in Draft and switch once.
- All 10 presets: Morning Mist, Ground Fog, God Rays, Dusty Interior, Underwater, Smoke Haze, Night Fog, Desert Heat Haze, Forest Shafts and Cinematic Haze.
- Aim Through Selected. Lite already finds a window for the sun by itself; Aim Through Selected turns the sun so its light comes in through the window you select, with Strength, Softness and Color sliders for the sun.
- Fog beams. A spot light with its own cone of fog: Stage Spot, Searchlight or Flashlight. The cone follows the light.
- Wind and churn that move the fog when the animation plays.
- The Look sliders: light glow, floor height, height falloff, noise and edge fade, live in the viewport.



Every button is in the Mistwright documentation, and the Draft and Final numbers are on the panel reference.
By hand, Lite or Mistwright
| By hand | Mistwright Lite (free) | Mistwright ($8) | |
|---|---|---|---|
| Fog box fitted to the camera | scale a cube yourself | one click, Fog to Camera or Fog to Scene | one click, plus Re-fit and Max Distance |
| Presets | none | 2 | 10 |
| Density and color | node values | 2 sliders | sliders, plus glow, height, noise, edge fade |
| Sun for the shafts | add and aim by hand | added, finds the window, Direction and Elevation sliders | the same, plus Aim Through Selected, Strength, Softness, Color |
| Render quality | change EEVEE and Cycles settings yourself | one fixed setting (Standard) | Draft / Final for both engines |
| Fog beams and wind | build by hand | no | yes |
| Undo everything | delete by hand | Remove Fog | Remove Fog |
The manual route is enough for a single still where you set the box up once. If you set up fog often, or move the camera a lot, start with Lite.
FAQ
Why is my volumetric fog not showing in Blender?
Check that the viewport is in Rendered shading, that the Principled Volume or Volume Scatter goes into the Volume socket of the Material Output, that the density is high enough for the size of your scene (0.02 to 0.04 for a 24 m hall), and that a light actually shines into the fog box.
Why does World volume make my render black?
A World volume fills all of space without an end, and a sun and the World background are infinitely far away. Any density blocks all of their light. In my tests 0.02 and 0.0005 both gave a black frame in EEVEE and Cycles. Use a fog box instead.
What density should fog have in Blender?
It depends on the scene size, because density is per metre. In a 24 m hall, 0.02 to 0.04 gave clear god rays, 0.005 was barely visible and 0.1 hid the far wall.
How do I make god rays brighter?
Raise the Anisotropy of the Principled Volume to 0.6 to 0.8 and look towards the light. Make the sun stronger, and make sure the light comes through narrow openings: windows, trees, columns.
EEVEE or Cycles for fog?
Both use the same material. EEVEE rendered my hall in 1 to 2 seconds, Cycles in about 12 seconds on the CPU. Cycles adds bounce light from the walls.
Related
- Mistwright product page: what the add-on does, measured.
- Mistwright documentation: install, every panel option and troubleshooting.
- Free versions of our add-ons.
- All guides.