Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Feature Request 2d shadowcaster closed tilemap

Discussion in 'Universal Render Pipeline' started by CaptN_Coding, May 1, 2024.


how to make a 2d shadowcaster on dynamic closed tilemap

  1. code

    0 vote(s)
  2. suggestion

    0 vote(s)
Multiple votes are allowed.
  1. CaptN_Coding


    Nov 6, 2019
    After a lot of struggling, I can't find a way to make a dynamic shadowcaster on a 2d tilemap.
    Problem is, I can't bake it since the tilemap is dynamic (add / break bloc, terraria like) and procedurally generated.
    Since the map is "closed off" (e.g. big closed cave), and the fact that the embedded shadow caster tilemap doesnt work when you are on the inbound side, I can't make it work. Does anyone has any idea on how to make it work ?
    I already have a code to make a custom shape from the classic one, working in real time (cf ugly schematic), but since it add twice as much shadow complexity it can't run it in real time even with a single light.
    Do anyone have suggestion or solution to make it work ?