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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Lightining reflexion intensity strange behavior with skybox source and terrain.

Discussion in 'Global Illumination' started by Denis-Valjean, May 12, 2015.

  1. Denis-Valjean


    Mar 25, 2015
    Hi folks,

    Built a Day-Night transition script. I wanted the night time to be full dark , so when time > 18h00 the light intensity of directional light, the ambient light intensity and the reflection intensity begin lerping to zero. All this with Skybox set as reflection source.

    My script works ok, as I follow the sliders moving to 0 in the lightning panel. Everything gets dark, but the terrain not. It keeps reflecting something. The terrain contains just a simple texture with no emissive material, metalic and smoothness set to zero.

    The most strange is that while running the scene, if I move my mouse to lightning panel and just click or move slightly the reflection source slider, the terrain gets dark as it should be. Remember, all this with skybox set as reflection source. If I set the reflection source to custom, everything works ok, with light, but the standard shader metalic property no longer works, as my metalic objects in scene get all black, because I set no cubemap to custom reflection source.

    So, is this something I am doing wrong with skybox source or a bug? Will I have to make a cubemap of my scene to get it working? I am lost.