Search Unity

double shadows with AR meshes/planes stacked on top of each other

Discussion in 'AR' started by edwon, May 14, 2020.

  1. edwon

    edwon

    Joined:
    Apr 24, 2011
    Posts:
    266
    I've run into the problem of shadows doubling on top of each other throughout my AR dev history, but with the new iPadPro and meshing, it's become blatantly obvious in many cases.

    I need a shader that can occlude, render shadows from objects in AR, and also BLOCK shadows from hitting any objects behind it, without actually casting a shadow itself.

    Have googled this up, down, forwards, and backwards, can't figure it out.

    Take a look at the video for a visual example of when this happens.

     
  2. pookzzzz

    pookzzzz

    Joined:
    Aug 4, 2021
    Posts:
    1
    Hi Edwon, have you figured out how to solve this? Or is there a shader that can both occlude and render shadows in ar foundation?
     
  3. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,062
  4. mdsaidov98

    mdsaidov98

    Joined:
    Nov 26, 2018
    Posts:
    5
    Hi, did you solve that? Created AR URP project, shadows only shader to AR plane, and many shadows appear because AR planes are getting on each other