Search Unity

Question Enviromental reflections not updating properly

Discussion in 'Universal Render Pipeline' started by Eleocraft, Apr 20, 2023.

  1. Eleocraft

    Eleocraft

    Joined:
    Jun 19, 2019
    Posts:
    17
    As you can see in the image below I am getting weired orange reflections on all reflective materials in the scene (even when there are no active lights). I tracked the issue down to the enviromental reflections, they don't seem to update with the skybox. I am using a custom dynamic skybox shader.

    Thanks for your help!

    refleciton.png enviroment reflections settings.png
     
  2. wwWwwwW1

    wwWwwwW1

    Joined:
    Oct 31, 2021
    Posts:
    769
    Hi, you need to click the Generate Lighting button in the Lighting panel to update environment reflections (the default invisible reflection probe in scene).

    You can uncheck baked & real-time GI to avoid baking lightmaps after clicking the button. Another way to have dynamic environment reflections is placing a real-time reflection probe to the scene.
     
  3. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,060
    Or call UpdateGI() via script to update it when needed
     
    Eleocraft likes this.
  4. Eleocraft

    Eleocraft

    Joined:
    Jun 19, 2019
    Posts:
    17
    Thanks for the help everyone, but I just fixed it by turning off the ambient occlusion parameter of the most affected shaders. (mostly flat planes like for example water)
     
    Last edited: Apr 21, 2023
    DevDunk likes this.