Need a sky to convert? The free Skybox Sampler has six finished skies as 2048 x 1024 panoramas, with the six-face sets and the Unity panoramas already made. The paid packs (Space, Stylized Sky, Alien Worlds) ship every sky in all three forms at 4K.
1. Panorama to six cube faces
Drop a 2:1 equirectangular image (PNG or JPG; 4096 x 2048 is a typical size). You get six square faces. With Unity names each file is named after the Skybox/6 Sided slot it goes into (Front, Back, Left, Right, Up, Down). With axis names the files are px, nx, py, ny, pz, nz in the OpenGL cubemap layout, which is what most other engines and tools expect.
2. Panorama for Unity's Skybox/Panoramic shader
Unity's Skybox/Panoramic shader reads a latitude-longitude image mirrored compared with Godot, Blender and most HDRI viewers, and with its seam a quarter turn away: a panorama that is right in Godot shows the sun on the wrong side in Unity and does not line up with the same sky's six-face set. This makes the copy that does line up. Use the same panorama as above (it is reused if you have loaded one).
3. Six cube faces to a panorama
Drop six square images at once. Names containing front, back, left, right, up, down (Unity slots) or px, nx, py, ny, pz, nz (axis names) are matched automatically; fix any slot by hand below. The output is a 2:1 panorama in the standard layout (Godot's PanoramaSkyMaterial, Blender, HDRI viewers), with the Front face at the centre of the image.
How the conversion works
A skybox is a function of the view direction. An equirectangular panorama stores that function as a 2:1 image where the horizontal axis is the compass heading (longitude) and the vertical axis is the angle from straight up (latitude). A cubemap stores the same function as six square images, each the view through one face of a cube centred on the camera. Converting between them means, for every pixel of the output, working out which 3D direction it shows and reading the colour of that direction from the input. This page does exactly that, with bilinear filtering, in JavaScript on your own machine.
Conventions used here
| Face | World direction | Unity 6 Sided slot | Axis name |
|---|---|---|---|
| Front | +Z | Front | pz |
| Back | -Z | Back | nz |
| Left slot | +X | Left | px |
| Right slot | -X | Right | nx |
| Up | +Y | Up | py |
| Down | -Y | Down | ny |
Unity's manual defines the six slots by world axis, and its Left slot is the +X face, which sits to the right of a default camera. The files made here are named after the slot they go into, so put each file into the slot with the same name and the sky is upright with no swapped sides. The six images are "inside view" faces in the OpenGL cubemap layout: the bottom edge of Up meets the top edge of Front, as on an unfolded cross. The centre of the panorama becomes the Front face.
These are the same conventions our own packs use, and they were checked in Unity 6: faces line up with no seams, the horizon is level and the sky is upright. If your source panorama has a different "front" (the sun where you do not want it), rotate the panorama first by rolling it horizontally; a quarter of the image width is a 90 degree turn.
Import settings that avoid seams
- Unity, six faces: Texture Shape 2D, sRGB on, Wrap Mode Clamp, Generate Mip Maps off, Filter Bilinear, Compression None or High Quality. Then a material with shader
Skybox/6 Sided, each file in its slot; assign it in Window → Rendering → Lighting → Environment. The full walkthrough is in the Unity skybox guide. - Unity, one panorama: use the copy from step 2, Wrap Mode Repeat, Mip Maps off, shader
Skybox/Panoramic, Mapping Latitude Longitude, 360 Degrees. - Godot 4: you do not need the cube faces at all. Put the panorama in a
PanoramaSkyMaterialinside a Sky, inside an Environment, on a WorldEnvironment node. Steps and fixes are in the Godot 4 skybox guide. If you have only six faces, use step 3 here to make the panorama. - Face size: for a 4096 x 2048 panorama, 1024 px faces keep roughly the same detail per degree; 2048 px faces are sharper near the cube corners but four times the memory. Browsers can run out of memory above 2048.
Privacy and limits
No upload happens: the files are read by your browser and never sent anywhere. Very large images (8K panoramas, 4K faces) may be slow or fail in the browser; for batch work, our packs' pipeline does the same conversion offline. The output is 8-bit PNG, so an HDR source loses its range; convert HDR files in your engine or in Blender instead.
Skip the conversion. Every sky in our packs comes as a 4K panorama, a six-face set named for Unity, a mirrored panorama for Skybox/Panoramic and a Godot 4 addon with ready Environments. The free sampler has two skies from each pack. Royalty-free, no attribution required.