01 / 21

HDRI
Environment Lighting

Master High Dynamic Range Image lighting in Blender to create photorealistic scenes using real-world environment maps in the World shader.

Blender

What is an HDRI?

An HDRI (High Dynamic Range Image) is a special photograph that captures the full range of light intensity in a scene: from the deepest shadows to the brightest highlights. Unlike standard images limited to \( 2^8 = 256 \) brightness levels per channel, HDRIs store light values as floating-point numbers, often spanning a range of \( 10^{-4} \) to \( 10^{5} \) in luminance.

Why HDRI Lighting Matters

★ Realistic Reflections
The environment image wraps around your scene as a sphere, providing accurate reflections on glossy surfaces.
★ Natural Illumination
Real-world light data creates soft shadows, color bleeding, and ambient occlusion automatically.
★ Fast Setup
A single HDRI replaces dozens of manual lights: just plug it into the World shader and render.

Equirectangular Projection

An HDRI is stored as an equirectangular image: a flat rectangle that maps to the inside of a sphere. The horizontal axis spans \( 360^\circ \) of longitude, and the vertical axis spans \( 180^\circ \) of latitude.

Flat HDRI Image
\( 360^\circ \times 180^\circ \)
\( 0^\circ \)
\( 180^\circ \)
\( 360^\circ \)
Environment Sphere Blender wraps the flat image onto a sphere surrounding your scene

The World Shader Node Graph

In Blender, HDRI lighting is configured through the World properties using the Shader Editor. The core node chain connects three nodes together:

Environment Texture your_hdri.hdr Color output Background Strength: 1.0 Surface output World Output Final destination Surface input Environment Texture → Background → World Output

HDRI vs Manual Lights

HDRI Lighting Manual Lights
Setup Time Seconds: load one file Minutes to hours
Realism Photographically accurate Requires skill to match
Reflections Full 360° detail Only light source visible
Control Limited to image content Full artistic control
Sharp Shadows Soft only (usually) Adjustable hardness
Best For Product vis, exteriors Stylized, interiors

How to Set Up HDRI Lighting

1
Open the Shader Editor. Switch the editor type from "Object" to World using the dropdown (globe icon).
2
Add an Environment Texture node. Press Shift+A → Texture → Environment Texture.
3
Load your HDRI file. Click "Open" and browse to your .hdr or .exr file.
4
Connect Color → Color. Drag from the Environment Texture's Color output to the Background node's Color input.
5
Adjust Strength. Set the Background node's Strength value: \( 1.0 \) is default, increase for brighter scenes.
6
Switch to Rendered view. Press Z → Rendered to open the view pie menu and preview the HDRI lighting in real time.

Controlling Rotation with Mapping

To rotate the HDRI environment (e.g., to move the sun position), add a Texture Coordinate and Mapping node before the Environment Texture. The Z rotation value spins the entire environment around the vertical axis.

Texture Coordinate Generated Mapping Rotation Z:
\( 45^\circ \)
Point mode Environment Texture .hdr file Background → World Tex Coord → Mapping → Env Texture → Background → World Output

Strength and Exposure

There are two main ways to control overall brightness when using HDRI lighting:

Background Strength
A linear multiplier on the HDRI values. \( \text{Strength} = 2.0 \) means every pixel is twice as bright. Found on the Background node.
Film Exposure
Found in Render Properties → Film → Exposure. Applies a post-process brightness boost using the formula \( \text{output} = \text{input} \times 2^{\text{EV}} \).

Example 1: Basic Outdoor Scene

Goal: Light a simple sphere on a plane with a clear sky HDRI.

1
Download an HDRI from Poly Haven (e.g., "kloofendal_48d_partly_cloudy"). Choose 2K resolution for fast previews.
2
World Shader Editor: Add Environment Texture → Open the .hdr file → Connect Color to Background node's Color input.
3
Set Strength to 1.0. Switch to Rendered View (Z → Rendered). You should see realistic soft shadows and sky reflections on the sphere.

Example 2: Studio Product Shot

Goal: Use a studio HDRI for a product render with controlled reflections and soft gradients.

1
Choose a studio HDRI (e.g., "studio_small_09"). These have soft light panels and neutral backgrounds.
2
Add Mapping node (Texture Coordinate → Mapping → Environment Texture). Rotate Z to position the main light panel at the desired angle relative to your product.
3
Increase Strength to 2.0 or higher. Studio HDRIs are often dimmer than outdoor ones.
4
Set render engine to Cycles for accurate light transport. Ensure denoising is enabled in Render Properties.

Example 3: Separate Lighting from Background

Advanced technique: Use one HDRI for lighting but render a different background (or transparent). This uses the Light Path node.

Light Path Is Camera Ray Env Texture HDRI Solid Color Mix Shader Fac: Is Camera Ray 1st: HDRI | 2nd: Color Background Strength: 1.0 World Output

Resolution and Performance

HDRI files come in various resolutions. Higher resolution means sharper reflections but uses more memory and loads slower.

Resolution Pixels File Size (.hdr) Best Use
1K 1024 x 512 ~2 MB Quick previews
2K 2048 x 1024 ~8 MB Standard work
4K 4096 x 2048 ~30 MB Final renders
8K+ 8192 x 4096 ~120 MB Close-up reflections

Cycles vs EEVEE with HDRI

Cycles
Path-traced renderer. Physically accurate HDRI lighting with correct soft shadows, caustics, and global illumination. Full support out of the box.
EEVEE
Rasterized renderer. Uses the HDRI for reflections and ambient light, but shadow accuracy is limited. Requires Irradiance Volumes for indirect lighting.

Common Mistakes to Avoid

✕ Using Image Texture
The Image Texture node uses flat UV mapping. You must use Environment Texture which applies equirectangular projection.
✕ Wrong Editor Mode
Forgetting to switch the Shader Editor from Object to World. The HDRI must go in the World shader, not a material.
✕ LDR Instead of HDR
Using a .jpg or .png sky image. These have clamped brightness values and produce flat, unrealistic lighting with no contrast.
✕ Ignoring Strength
Leaving strength at \( 1.0 \) for all scenes. Indoor HDRIs may need \( 3.0+ \) while bright outdoor ones may need \( 0.5 \).

Quick Reference Summary

Concept Key Detail
Node Chain Env Texture → Background → World Output
File Format .hdr or .exr (never .jpg/.png)
Rotation Control Tex Coord → Mapping (Z rotation) → Env Texture
Brightness Control Background Strength (physical) or Film Exposure (post)
Separate BG Use Light Path → Is Camera Ray with Mix Shader
Best Engine Cycles for accuracy, EEVEE needs baked probes
Working Res 2K preview, 4K+ final render

Question 1 of 5

Which node must you use to load an HDRI file into Blender's World shader?

Question 2 of 5

What is the correct node chain for basic HDRI lighting in the World shader?

Question 3 of 5

To rotate the HDRI environment so the sun is behind the camera, which node and property do you adjust?

Question 4 of 5

Why should you use an .hdr or .exr file instead of a .jpg panorama for environment lighting?

Question 5 of 5

Which node allows you to use an HDRI for lighting only while rendering a different background for the camera?