Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Stable Fit shadow, how does LWRP do it?

Discussion in 'Graphics Experimental Previews' started by bitinn, Aug 21, 2019.

  1. bitinn

    bitinn

    Joined:
    Aug 20, 2016
    Posts:
    961
    I am reading LWRP source and failed to find the secret sauce that make shadow stable (eg. no shimmering due to camera movement)

    Screen Shot 2019-08-21 at 14.24.36.png Screen Shot 2019-08-21 at 14.24.39.png

    (I am writing my own custom SRP and I would like to know how and where LWRP did it...)
     
  2. phil_lira

    phil_lira

    Unity Technologies

    Joined:
    Dec 17, 2014
    Posts:
    584
  3. bitinn

    bitinn

    Joined:
    Aug 20, 2016
    Posts:
    961
  4. bitinn

    bitinn

    Joined:
    Aug 20, 2016
    Posts:
    961
    Holy, I found the problem: I was passing the resolution of the entire shadow map to ComputeDirectionalShadowMatricesAndCullingPrimitives, when in fact I should be passing tile resolution (eg. resolution of the shadow cascade tile).
     
    Fewes likes this.