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

Realtime lighting for a mobile game

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

  1. SamohtVII

    SamohtVII

    Joined:
    Jun 30, 2014
    Posts:
    366
    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:
    29
    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:
    485
    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...