Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Variance Shadow Maps

Discussion in 'Graphics Dev Blitz Day 2023 - Q&A' started by Peter77, May 24, 2023.

  1. Peter77


    QA Jesus

    Jun 12, 2013
    kripto289, NotaNaN and cLick1338 like this.
  2. SebLagarde


    Unity Technologies

    Dec 30, 2015
    Variance shadow map and others like exponential shadow map, have pros / cons like any algorithm.
    They are good at allowing large kernel filter (i.e blurring for soft shadow), but there is a lot of light leaking that it hard to fix - in particular it depends on the distance between objects which is hard to control in a dynamic world.

    For a generic engine like Unity, it make sense to stay with PCF fitlering as it have less instability, i.e it is easier to predict the result. So the choice isn't about the quality, but more about the ease of setup and predictability.

    Still HDRP pipeline use exponential shadow map for area light shadow as it is a good compromise of performance / quality in this context (large blur kernel can't be achieve with PCF), and we accept the light leaking there