Skybox in Unity

A skybox is a special type of material used to represent skies, usually six sided. It is a cube with a different texture on each face. When you use a skybox to render a sky, Unity essentially places your Scene inside the skybox cube.

To create one:

  • Create a new material
  • With the material selected, choose Skybox/6 sided in the Shader options
  • Textures must be placed in the same order in the Skybox material
  • Go to Window/Rendering/Lighting and in Environment choose the skybox material

Result:

In Unity’s documentation, there is some information about Best Practices for skyboxes. For instance:

  • If your Skybox includes a sun, moon, or other light in it, set up a Directional Light that points in the same direction as the light.
  • If you want to have fog in your Scene, match the fog color to the color of the skybox. This makes the fog blend to the color of the Scene sky.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store