Skip to content
Tutorials Center
My learning

Topics

Lesson 21 of 37 ยท Lighting and Rendering

Blender World Lighting: HDRI, Sky Texture and Backgrounds

Light a Blender scene with the World: set background color, use HDRI environment maps and the Sky Texture node, rotate lighting and control exposure and Film Transparent.

Every object in a scene is surrounded by an environment. In Blender that environment is the World, and by default it is a flat gray that lights everything softly from all directions. Changing the World is the fastest way to improve a render: an outdoor sky, a studio gradient, or a photographed room all light a model in seconds and give believable reflections.

Blender cannot run on this site, so the steps are described in words, and the runnable examples use Python stand-ins for the math (dynamic range, exposure and rotation).

Where the World lives

Open the World Properties tab (the red globe icon) in the Properties editor. Under Surface you will see a Background node with a Color and a Strength. A flat color with Strength 1.0 is a uniform ambient light. Lowering the Strength darkens the whole scene's fill light; raising it brightens everything.

To see the node graph, change the 3D Viewport to a Shader Editor and switch its Object drop-down to World.

HDRI environment maps

An HDRI (high dynamic range image) is a photograph, usually a 360-degree panorama, whose pixel values go far above "white". The sun in an HDRI may be thousands of times brighter than the sky, so it casts real, hard shadows, while the sky fills the scene softly. Reflections in glossy objects show the captured environment.

To use one:

  1. In the World Properties, click the yellow dot next to Color and choose Environment Texture.
  2. Click Open and pick a .hdr or .exr file you have the right to use (many are free to download under open licenses; check each file).
  3. Switch the viewport to Material Preview or Rendered to see it.

The mapping is equirectangular: the image is a flattened sphere, wider than tall (2:1).

World lighting recipe

World tab Red globe icon
Environment Texture Open an HDRI
Rotate Aim the sun
Strength Set exposure

Four steps from flat gray to a real sky.

1 / 2

Rotating and aiming the lighting

Rotating the HDRI moves the sun in the sky. Add a Texture Coordinate node and a Mapping node in the World node graph, connect Generated to Mapping's Vector input, then Mapping's output to the Environment Texture's Vector. Change Rotation Z on the Mapping node. A full turn is 360 degrees, and the map wraps horizontally.

Python Stand-in: where is the sun in an equirectangular HDRI?

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Dynamic range and exposure

A normal JPEG stores values 0 to 1. An HDR file stores linear light with no upper limit. The sun might be 20,000 while the sky is 1. Color Management (Render Properties > Color Management, View Transform: Filmic in older versions, AgX or Standard in newer ones) squeezes this range into what a monitor shows. Exposure raises or lowers the whole image in "stops": +1 stop doubles the light.

Python Stand-in: exposure in stops and a simple tone curve

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

A real "filmic" curve is more refined, but the idea is the same: the sun is clipped to white, the sky stays readable, and exposure shifts everything together.

The Sky Texture node

If you have no HDRI, use a procedural sky. In World Properties, click the yellow dot next to Color and choose Sky Texture. Pick Nishita (newer Blenders) and set:

  • Sun Elevation: 0 is the horizon (sunset), 90 is overhead noon.
  • Sun Rotation: compass direction of the sun.
  • Air, Dust, Ozone: haze and color of the atmosphere.
  • Sun Size and Intensity.

A low elevation (3 to 10 degrees) gives orange sunsets with long soft shadows. The sky also acts as a light, so you may not need any extra light.

Background versus lighting

Sometimes you want the HDRI to light the scene but not be visible. Use a Light Path node's Is Camera Ray output as a mix factor between the HDRI and a flat color: camera rays see the flat color, while light and reflection rays still use the HDRI. Alternatively, enable Render Properties > Film > Transparent to render the background as alpha so you can composite the render on another image. Save as PNG (RGBA) or OpenEXR to keep the transparency.

Studio worlds

For product shots, a dark world (Strength 0.05) plus a few large Area lights gives full control. A neutral gray gradient background and a white floor with soft key and rim lights looks like a photo studio. Compare with the light basics in Blender Lights.

Common mistakes

  • Seeing a pink or black world: the file path is broken after moving the project. Use File > External Data > Make Paths Relative or Pack Resources.
  • A blurry visible background. HDRIs below 4K look soft in the camera; render the background as a separate image or use a high-resolution file.
  • Setting the World Strength to 10 to compensate for dark objects. Fix the exposure or lights instead.
  • Using an 8-bit JPEG as an "HDRI": the sun is clipped at 1.0, so no hard shadows appear.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What makes an HDRI better than a normal JPEG for lighting?

    High dynamic range data keeps the true brightness of the sun, so it casts realistic shadows.
  2. 2. What does rotating the Mapping node's Z rotation do in the World?

    It spins the environment around, so the sun lands in a different direction.
  3. 3. +2 stops of exposure multiplies the light by how much?

    Each stop doubles the light, so two stops give 2 x 2 = 4.
  4. 4. How can you render a transparent background but keep HDRI lighting?

    Film Transparent hides the world from the camera but still uses it to light and reflect.

Summary

  • The World lights the whole scene; set it in the World Properties tab.
  • An HDRI gives realistic sun, sky and reflections; rotate it with a Mapping node.
  • Exposure is measured in stops; each stop doubles the light.
  • Use Sky Texture, Film Transparent and a Light Path node to control what the camera sees.

Next: Camera and Render Output