Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Extremly low quality shadows on the highest quality

Discussion in 'General Graphics' started by noamro, Dec 6, 2019.

  1. noamro

    noamro

    Joined:
    Dec 28, 2017
    Posts:
    16
    Hey! I have no idea what is going on, and why the shadows are so pixelated..







     
  2. customphase

    customphase

    Joined:
    Aug 19, 2012
    Posts:
    243
    Your spot angle is way too high. Due to how projection works this causes an uneven distribution of pixels in the shadow map, essentially wasting more pixels on things closer to the edges of the frustum. Try switching to point lights instead.
     
    Last edited: Dec 6, 2019
  3. noamro

    noamro

    Joined:
    Dec 28, 2017
    Posts:
    16
    It's still gives some weird shadows :\
    and if i use HDRP i lose like 100 fps just for using it.
     
  4. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,238
    A shadow casting point light is roughly 6 times as expensive as a shadow casting spot light, and Unity’s point light shadows are kind of terrible.

    However what you’re seeing is the expected result of using hard shadows. You’re seeing the aliasing in the shadow maps, which is unavoidable when using Unity’s built in shadows. Soft shadows, or something like the NextGen Soft Shadows asset will blur the shadows to hide the aliasing.
    https://forum.unity.com/threads/nex...ed-dynamic-penumbra-shadows-for-unity.440088/

    For sharp shadows you’d need to use stencil shadows (which I don’t know of a working implementation for any modern versions of Unity), or raytraced shadows, which are currently only available for an experimental branch of the HDRP and only for Nvidia GPUs.