Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How load procedural Skybox in shader in Unity 5?

Discussion in 'Shaders' started by Neoku, Mar 6, 2015.

  1. Neoku

    Neoku

    Joined:
    Oct 27, 2014
    Posts:
    261
    Hello, the way for load a Cube Skybox in a material is with this code in the shader: _SkyBox("SkyBox", CUBE) = "" {} but i need load a procedural Skybox (new in Unity 5), how?, thanks.
     
  2. jvo3dc

    jvo3dc

    Joined:
    Oct 11, 2013
    Posts:
    1,520
    I don't know about the procedural skybox, but why don't you just render a shader fullscreen that fills in the background?
     
  3. Neoku

    Neoku

    Joined:
    Oct 27, 2014
    Posts:
    261
    I am using a water shader that use the line code of my first post, i think because reflect de cubemap, but i would be like reflect in the water the procedural skybox instead the cubemap.
     
  4. jvo3dc

    jvo3dc

    Joined:
    Oct 11, 2013
    Posts:
    1,520
    You can also reflect a full screen quad with a procedural background in the water.
     
  5. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Just drag the procedural skybox material into the lighting window.
     
  6. Neoku

    Neoku

    Joined:
    Oct 27, 2014
    Posts:
    261
    Is not possible, the material only have the option "SELECT" and when i use it only appear as options the not procedural skyboxes.
     
  7. Neoku

    Neoku

    Joined:
    Oct 27, 2014
    Posts:
    261
    Well, Unity create automatically a Skybox probe from the procedural sky and can be used as a reflection cube map in materials, is great, this is the solution to my problem, thanks.