I’m currently working on a top down strategy game with two worlds, one dark world with moonlight and one bright world with sunlight. The world is split up into small areas, and when you conquer an area, the area turns bright.
But I’m stuck with the lightning. I don’t know how to light only specific areas. I experimented with light function materials to mask the sunlight, that works for one area, but I can’t add multiple light functions to light for example 20 areas. I don’t think its a good solution, it’s just getting to complicated.
And I can’t put a masked sunlight over every area, I think the performance would be very bad.
I would be very grateful for any help or suggestions!