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

Problem with reflections

Discussion in 'Global Illumination' started by matiasges, Aug 8, 2021.

  1. matiasges

    matiasges

    Joined:
    Jan 24, 2021
    Posts:
    139
    There is some unwanted reflection when I look to the leaves (which are actually rocks that are somewhere else):


    Another issue is when I point a spotlight to the window:



    I'm using Baked GI in Built-in render pipeline. I have trying to tweak some things but with no results
     
  2. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    The first issue seems to be related to shader sorting. Either switch your shader to a different rendering mode, or try adjusting its Render Queue property.

    Second issue looks like NaNs. They can manifest themselves when using high specular/smoothness values in your texture/shader. I'd suggest looking there first. You can also try ticking Stop NaN Propagation checkbox in the Post-process Layer component.

    If NaN issue reproduces only after baking lightmaps, then it might be a directionality issue. Switch to Directionality scene debug view mode to verify it. To fix it, either bake using CPU lightmapper, or switch to non-directional mode.
     
    Last edited: Aug 9, 2021
    Ruchir and matiasges like this.
  3. matiasges

    matiasges

    Joined:
    Jan 24, 2021
    Posts:
    139
    Nice. Solved both issues :) thanks!
     
    kristijonas_unity likes this.