Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How do I render HDR as a skybox?

Discussion in 'Editor & General Support' started by tripmix, Nov 14, 2016.

  1. tripmix

    tripmix

    Joined:
    Sep 1, 2016
    Posts:
    5
    Title says it all really. I've got an HDRi (tried both EXR and PNG) but it wont let me put it in the lighting properties.
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Import your HDRi as a Cubemap ("Texture type cubemap in the texture importer").
    Then create a material and select the shader "Skybox/Cubemap" from the shader dropdown.
    Set the imported cubemap to the cubemap property of the material.
    Now you can assign that material to the skybox property in the lighting settings.
     
    zhuchun, Snowirbis, Malkyne and 2 others like this.
  3. KornyBER

    KornyBER

    Joined:
    Nov 26, 2016
    Posts:
    1
    Thanks fffmalzbier, you helped me a lot
     
  4. scyt_

    scyt_

    Joined:
    Apr 27, 2020
    Posts:
    3
    what is a texture importer and where can i find one?
     
  5. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    It is the user interface for a texture when you click on it in the project. This is the texture importer.

    There is also a scripting API. In this case you want to use an option in the inspector after selecting your texture.

    https://docs.unity3d.com/Manual/class-TextureImporter.html