Search Unity

How to add lighting to sprites

Discussion in '2D' started by J05HUA, Mar 6, 2019.

  1. J05HUA

    J05HUA

    Joined:
    Jul 24, 2018
    Posts:
    1
    I'm trying to make a flashlight for a 2D game that will actually allow sprites to cast shadows. I know you can achieve a flashlight effect by erasing part of a something black and then just setting that as your highest layer but this doesn't cast any shadows. Is it possible to give my sprites height so that they are 3D objects that can cast shadows or do I need to find another solution? Thanks.
     
  2. beanie4now

    beanie4now

    Joined:
    Apr 22, 2018
    Posts:
    311
    You can use 3D lighting to make it easier but that will start moving into higher system requirements