I’m working on a grid based game, where each cell is drawn as separate object using prefabs for the various floor types.
I’m planning to store a light value for each cell. Any object drawn on that cell should be lit based on this value (so the floor, plus anything else with it).
What would be the best approach? I’m wondering if its a job for shaders, but I’ve no experience here so if so any pointers would be helpful.
Edit: Simple lighting map produces and stores a value per grid cell. Minimum of one game object per cell, some cells will have a couple more objects. I’d like each object to honour this value, no Unity lighting to be used.
Edit2: Vertex colors seemed to work best so thats what I’m using: