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

Realtime lighting for a mobile game

Discussion in 'Global Illumination' started by SamohtVII, Jun 21, 2019.

  1. SamohtVII

    SamohtVII

    Joined:
    Jun 30, 2014
    Posts:
    368
    I have a pretty large level for a mobile game i'm working on. It's just a full size terrain and some trees and water. Is it in my best interest to ditch the idea of realtime shadows for my game and just bake them? It lags slightly on my high end mobile at the moment so not hopeful on lesser devices. Is it a general rule to not use realtime lighting on mobile or can it be done if done smartly?

    Thanks
     
  2. KarolisO

    KarolisO

    Joined:
    Feb 2, 2014
    Posts:
    30
    Realtime shadows are best avoided under most circumstances. There are solutions on the asset store to project cheap approximate shadows though.
     
  3. bart_the_13th

    bart_the_13th

    Joined:
    Jan 16, 2012
    Posts:
    498
    realtime shadow != realtime lighting...
    I can have 2 realtime lighting (1 spotlight + 1 directional) running smooth on low to mid end phone... But 2 dynamic lighting casting shadow on all objects would possibly render my game unplayable...
    But, of course, you can always mix static/baked shadow with dynamic shadow...