How to Rotate an HDRI in Blender (5.1)

Introduction

Rotating an HDRI is one of the most common adjustments you’ll make once you start using them for lighting — the environment might look great, but the brightest part of the sky isn’t hitting your subject from the right angle. Blender gives you two ways to fix that.

In this tutorial I’ll show you both methods: a quick built-in option for one-off adjustments, and a node-based setup that’s better if you want to animate the rotation.

Quick answer: In the Shader Editor, switch to World, select the Environment Texture node, press N, open the Node tab and change Texture Mapping > Rotation Z. For animation or more control, add a Mapping node instead (Method 2).

Blender Version: 5.1

Prefer to watch? Here’s the video version of this tutorial:


1. Rotate Using the Node’s Built-In Texture Mapping

Open the Shader Editor and switch the editor type from Object to World using the dropdown in the top-left corner.


Select the Environment Texture node, then press N to open the sidebar.


In the sidebar, open the Node tab and expand the Texture Mapping section.


Change the Rotation Z value to rotate the HDRI around its vertical axis.


2. Rotate Using a Texture Coordinate + Mapping Node

If you want to animate the rotation, add a Texture Coordinate node (Add > Input > Texture Coordinate) and a Mapping node (Add > Vector > Utilities > Mapping) (or select the environment texture, then press ctrl+t, if you have the Node Wrangler add-on enabled)

Connect the Texture Coordinate node’s Generated output to the Mapping node’s Vector input, then connect the Mapping node’s Vector output to the Environment Texture node’s Vector input.

Change the Rotation Z value on the Mapping node to rotate the HDRI. Because it’s now a separate node, you can keyframe it to animate the rotation, or plug the same Mapping node into more than one Environment Texture node.


3. Animate a Full 360° Turn

A slowly turning HDRI is an easy way to show off a model or material, because the reflections move across the surface while the object stays still.

  1. On the Mapping node from Method 2, go to your first frame, set Rotation Z to 0°, then hover over the field and press I to add a keyframe.
  2. Go to your last frame, set Rotation Z to 360° and press I again.
  3. By default Blender eases in and out of keyframes, so the turn speeds up and slows down. Select both keys in the Timeline or Graph Editor, press T and choose Linear for a constant speed.

Tip: for a seamless loop, put the 360° key one frame after your last frame. Otherwise the first and last frames are identical and the loop stutters for one frame.


4. Rotate the Background Without Changing the Lighting

Sometimes the lighting is perfect but the part of the HDRI that shows behind your subject isn’t, or the other way around. You can split the two with a Light Path node:

  1. Duplicate the Environment Texture and its Mapping node (Shift + D), so you have two copies.
  2. Connect each copy to its own Background node.
  3. Add a Mix Shader (Add > Shader > Mix Shader) and plug it into the World Output.
  4. Connect the first Background (the lighting) to the top shader input and the second Background (what the camera sees) to the bottom one.
  5. Add a Light Path node (Add > Input > Light Path) and connect Is Camera Ray to the Mix Shader’s Factor.

Now rotating the second Mapping node only changes what the camera sees, while the first one keeps controlling the lighting and reflections. This trick works best in Cycles.


5. Fix a Tilted Horizon

Some HDRIs were captured slightly off level, so the horizon leans. Use Rotation X and Rotation Y (in the Texture Mapping panel or on the Mapping node) to straighten it. Small values of 1° to 3° are usually enough. Check it in Rendered view with a wide camera lens, where a tilt is easiest to see.


Common Issues

“I can’t find Texture Mapping in the sidebar”
Make sure the Environment Texture is selected.

“Which method should I use?”
Use the built-in Texture Mapping panel for a quick, one-off adjustment. Use the Texture Coordinate + Mapping node setup if you want to animate the rotation or drive it with a value used elsewhere in your scene.

“I rotated the world but nothing changes in the viewport”
In Material Preview mode, Blender lights the scene with its own preview HDRI, not your World. Open the Viewport Shading dropdown and enable Scene World, or switch to Rendered view.

“The HDRI rotates in the opposite direction”
Check the Mapping node’s type. Point and Texture types rotate in opposite directions, because Texture applies the inverse transform. Both work, so just pick one and stay consistent.

“The shadows don’t match my scene”
The brightest spot in the HDRI acts as your sun. Switch to Rendered view and change Rotation Z until the shadows fall where you want them, for example matching a window or the sun direction in a background plate.


💬 Final Thoughts

Both methods rotate the exact same thing — the HDRI’s mapping around the Z axis — so pick whichever fits the situation. For a quick tweak while lining up lighting, the built-in Texture Mapping panel is the fastest path. If you’re setting up something you’ll want to animate or reuse, the Texture Coordinate + Mapping node combo is worth the extra two nodes.

Want to make your own HDRI? Learn how to render your Blender scene as an HDRI.

Scroll to Top