Tyrbo Make your game

Free skyboxes that light your scene as well as fill the background

A skybox used to be six pictures pasted inside a cube around the camera: something to look at, nothing more. A modern sky does a second job. Stored as an HDRI, a panorama that keeps the sun's real brightness, it also lights every model in the scene and shows up in their reflections.

HDRI skies, each a panorama that can light a scene and stand behind it. 156 here.

The skies here are photographed HDRIs released under CC0, mostly from Poly Haven, which publishes them free at polyhaven.com, in the 1K and 2K sizes a game actually uses.

Skybox, HDRI, or both

  • An LDR skybox (a PNG or a JPG) is only a backdrop. White is as bright as it gets, so a sun and a cloud come out equally bright, and nothing useful can be lit from it.
  • An HDRI keeps the whole range of light, a sun far brighter than any cloud, and that range is what lets the engine light a scene from it.

You don't have to show the sky you light with. A stylized game can take its light from a real HDRI and draw a painted gradient behind the action, or use Tyrbo's sky effect on the effects shelf, a sky drawn in code for three.js.

Equirectangular or cubemap

Skies come in two layouts:

  • Equirectangular: one image twice as wide as it is tall, the whole sphere unrolled like a map of the world. HDRIs almost always ship this way.
  • Cubemap: six square faces, one per direction. Older engines and some shaders want it.

Most engines convert one to the other for you. three.js and Godot take the equirectangular image directly, and Unity turns it into a cube when you set the texture's shape. If you convert by hand, mind the order and orientation of the faces, which differ between tools, and check for a visible join at the back and a pinch at the poles.

Lighting a scene from its sky

An HDRI gives soft light from every direction and believable reflections, but no crisp shadows of its own. So pair it with a few things:

  • Turn the panorama until the bright spot of its sun faces the way your shadows need to fall.
  • Match it with a sun lamp: a single directional light pointed the same way casts the sharp shadows the HDRI can't, and should take its color from the sky's sun.
  • Set the exposure so the ground reads well, and let a tone mapper soften the blazing sun.
  • Use reflection probes indoors, where the open sky's light shouldn't reach.

On a phone, image-based light from a small sky is cheap. Real-time shadows are the costly part, so keep one shadowed light and bake whatever doesn't move.

Size and memory on a phone

Sky files are heavy: a 4K HDR runs to tens of megabytes. For lighting alone, 1K is plenty, since the engine blurs it heavily anyway. Show a 2K copy as the backdrop only when the sky fills much of the screen, and think about a compressed, ordinary-range copy for the background while the HDR file does the lighting.

Questions people ask

Is an HDRI the same as a skybox?

Not quite. Every HDRI can serve as a skybox, but it also carries the brightness needed to light a scene. A plain skybox image only decorates the background.

Are these skyboxes free for commercial games?

Yes. They're CC0, so you can use them in a paid game, its trailer and its store art. The makers ask for nothing, though Poly Haven's Patreon is what funds new captures.

How do I use an HDRI as a skybox in Unity?

Unity's Skybox/Panoramic shader takes the equirectangular HDR as it is: make a material with that shader, give it the texture, and set the material as the skybox in the Lighting window.

Can I make a stylized sky instead?

Yes. A gradient of two or three colors with a soft sun disc suits most cartoon and low poly games, and costs almost nothing. Keep a real HDRI for the lighting if you like the way it shades your models.

Make a game with them

Make your game

Sign in to get the plan and its concept art. Both are free.