Search Unity

Reflective water and skybox

Discussion in 'Editor & General Support' started by islanddreamer, Jun 7, 2006.

  1. islanddreamer

    islanddreamer

    Joined:
    Apr 29, 2006
    Posts:
    473
    Is there any way for the reflective water shader to reflect the skybox texture?
     
  2. Jonathan Czeck

    Jonathan Czeck

    Joined:
    Mar 17, 2005
    Posts:
    1,713
    Yep. Select the water object, and set the Clear Flags of the Camera component to Skybox.

    I'm not sure why that isn't default.

    -Jon
     
  3. islanddreamer

    islanddreamer

    Joined:
    Apr 29, 2006
    Posts:
    473
    I tried doing as you said, but I still don't get a skybox relfection. Is there anything else I should tick off?
     

    Attached Files:

  4. Jonathan Czeck

    Jonathan Czeck

    Joined:
    Mar 17, 2005
    Posts:
    1,713
    Are you sure you did that to the Daylight Reflective Water object and not the Main Camera object?
     
  5. islanddreamer

    islanddreamer

    Joined:
    Apr 29, 2006
    Posts:
    473
    Yes, sorry I picked the wrong thing when I grabbed that image. The Daylight Reflective Water camera has clear flags selected and set to Skybox. Any other settings I should try clicking on or off?
     
  6. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    It seems that you have skybox ("polluted depression") setup on your main camera (and possibly not on water reflection camera). Instead, you can leave out custom skyboxes on cameras empty, and setup a global skybox in Render Settings.
     
  7. islanddreamer

    islanddreamer

    Joined:
    Apr 29, 2006
    Posts:
    473
    Great! Thanks.