Skip to content

01 Skybox

Russ Painter edited this page Feb 2, 2019 · 3 revisions

In this step we'll set-up our our sky and ground for the play area.

Create Skybox Materials

  1. In your Unity project's Assets folder create a "Skies" folder.
  2. In your web browser go to this free hdri image collection
    • Download two panoramic sky images you like the look of. Left clicking the preview image will start a download of a zip file containing that skybox. We need the zip file, not the preview image.
    • Save these two zip files onto your desktop.
    • From your desktop right-click one of the zip files and "Extract All"
    • Drag the extracted hdr image from this folder on your desktop into your Unity project's Skies folder
    • Repeat the last two steps to extract the 2nd skybox image and import this into Unity
  3. Back in Unity click on one of your sky images and in the inspector window un-check "Generate Mip Maps" to avoid getting strange lines appearing in your sky.
  4. Right-click your Skies folder and select Create - Material and name this SkyBox1
  5. In the Inspector change the Shader to Skybox - Panoramic
  6. Drag one of your sky textures into the Spherical (HDR) texture box
  7. Repeat the last 3 steps to create a SkyBox2 material with your 2nd sky texture

Apply a SkyBox to your scene

  1. Open your Assets - Scenes - GameScene
  2. Open the lighting settings by using the top menu item Window - Rendering - Lighting Settings
    • I'd recommend pinning this window as a tab next to your Inspector window
  3. The top item here is Scene - Environment - Skybox Material. Select one of the materials you created.

At this point your scene view should look something like this:

Skybox

Clone this wiki locally