Skybox

Creating the Background for the scene

Simon Truong
3 min readJul 17, 2021

--

Skyboxes are essentially the backdrop of the scene, they are there to provide a scenic view such has the sky horizon or in our case, a city skyline. In this article, we are going to create a new skybox from scratch and implement it into our scene.

Understanding Skyboxes

Before we can create our own skybox, we must first understand what it is. A skybox is basically a giant 6 sided cube that encompasses the entire scene. The inside wall of the cube contains a texture map which is what the camera sees. As we rotate and move with the camera, the basically views each interior side of the cube.

Therefore it is very important to create a texture map which has seamless transitions, otherwise the hard edge would be seen. To properly understand how the skybox is built refer to example 1.

Example 1

Creating the Skybox

Creating the skybox is very simple. First create an new material, then within the Shader options select Skybox then 6 sided. The Inspector would then ask you to place in 6 individual texture.

As you dragging and dropping the images into the selected slots, you will see the bottom image slowly built up the total skybox.

Once you are done, within the Lighting tab (Windows > Rendering > Lighting) select the “Environment tab”. Drag and drop the newly created skybox into the Skybox material, and immediately you will noticed the entire environment is going to update/change according to the skybox lighting.

--

--

Simon Truong

A Designer, an Illustrator and a massive tech geek aspiring to become a professional Unity Developer.