Search Unity

Specify shadow resolution

Discussion in 'Shaders' started by Isomania, Jul 4, 2022.

  1. Isomania

    Isomania

    Joined:
    Jan 28, 2021
    Posts:
    16
    Hi!

    If I am not mistaken, shadow resolution scales with screen size and the specified Shadow Resolution in Project Settings -> Quality -> Shadows -> Shadow Resolition. Shadow Projection and Shadow Cascades can also influence the resolution of shadows. However, what if I want it to stay the same, no matter what? Is there any way for me to specify shadow resolution like I do a renderTexture's resolution?

    I could just bump it up to be max settings but I stand too lose performace.

    My problem:

    As you see someone with a 4k monitor would only require the lowest resolution on shadows while someone with a lower resolution screen would require max shadow resolution to get the same shadow quality on render as the one with a 4k monitor.