Search Unity

IOS Spotlight Z-fighting issue

Discussion in 'General Graphics' started by unitynewb, Sep 11, 2017.

  1. unitynewb

    unitynewb

    Joined:
    Feb 22, 2009
    Posts:
    235
    I ran into this weird issue on IOS that does not happen on android or editor. The problem is it looks like the spot light is z-fighting with the surface its hitting. I have tried changing the camera's near clip to a higher and lower value and that has not helped.

    I think it has something to do with one of the shaders because it is only happening on certain areas, looks like only reflective surfaces. There are different shaders, not the same one so I don't think all the shaders are bad.
     
    Last edited: Sep 11, 2017
  2. unitynewb

    unitynewb

    Joined:
    Feb 22, 2009
    Posts:
    235
    Looks like this only happens on opengles2. I changed it to opengles3 and the problem went away.