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

How can I know whether a cellphone support cascade shadow?

Discussion in 'General Graphics' started by Middle-earth, Jan 31, 2019.

  1. Middle-earth

    Middle-earth

    Joined:
    Jan 23, 2018
    Posts:
    73
    I just want know how many cellphones enable keyword UNITY_NO_SCREENSPACE_SHADOWS.Testing one by one is not practical.If a cellphones support es3.0,does it support cascade as well?
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,849
    Hi!
    It depends on the Tier settings. If they say "Enable cascade shadows", it will do cascade shadows.
    By default, ES3 devices use Tier2.
     
    phil_lira likes this.
  3. phil_lira

    phil_lira

    Unity Technologies

    Joined:
    Dec 17, 2014
    Posts:
    584
    In LWRP, shadow cascades are disabled in GLES2 only for performance reasons. All other APIs will do cascades if you request it.
     
  4. Middle-earth

    Middle-earth

    Joined:
    Jan 23, 2018
    Posts:
    73
    When I turn on Cascaded Shadows in Tier Settings on my cellphone platform,but my poor cellphone doestn't support cascade shadow.Is UNITY_NO_SCREENSPACE_SHADOWS enabled or disabled now?
     
  5. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,849
    As I said, UNITY_NO_SCREENSPACE_SHADOWS define is set to 1 if (and only if) the corresponding tier setting is enabled.
    What do you mean by "phone doesn't support cascade shadow"? What phone are you talking about?
     
  6. Middle-earth

    Middle-earth

    Joined:
    Jan 23, 2018
    Posts:
    73
    I think due to the hardware,some phones can't realise cascade.Even if turning on the tier setting option,the effect of shadow on these phones has no change because of the GPU limitation.
     
  7. BStheOne

    BStheOne

    Joined:
    Mar 10, 2015
    Posts:
    6
    Is there any way that I can enable Shadow Cascades in GLES2 in URP?
    In android the only way I achieved 60 fps in Android is with GLES2 and my game with all the optimizations can't run on sustainable framerate on GLES3 and shadow cascades are crucial for my game. Cause no cascades breaks my game's visuals with it's low quality on higher distances. And on GLES3 Shadow cascades does not caused me that much of a performance overhead. And I'm baking most of the shadows, but for some non-static Objects on distance, I can't.
    So is there any work around to enable it in GLES2?

    I'm using Unity 2019.4.20f1, URP7.5.3 (Latest versions available)
     
  8. look001

    look001

    Joined:
    Mar 23, 2017
    Posts:
    104
    I don't get it. Are shadow cascades supported on mobile now? I cant get it to work. If I enable cascades it makes no difference. Please tell me, are shadows cascades possible on mobile (android) with forward rendering? Or maybe does it reuqire differed rendering? The docs are are missing everything about compatibility