Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Controlling in which shadow cascades objects are rendered

Discussion in 'General Graphics' started by theFrenchDutch, Feb 1, 2016.

  1. theFrenchDutch

    theFrenchDutch

    Joined:
    May 5, 2014
    Posts:
    25
    Hi !

    I am making an open world game with very big terrain sizes and 3D forests close to the player. I have my shadow cascades set so that the two first cscades are for very close stuff ( < 200m) and the last two for distant mountains, up to 20km.

    My problem is, the 3d trees close to the player are getting rendered in every cascades, even the 20km one, where they arent relevant enough to even be one pixel wide, so its costing me thousands of useless draw calls.

    Is there a way to decide in which shadow cascades objects are rendered ?
     
  2. Richounet

    Richounet

    Joined:
    May 15, 2014
    Posts:
    1
    Hi, I had the same problem with a project recently, where I had to have huge shadow distances but still detailed shadows up close. Is there a way to do it ?

    Thanks :)