This is some great stuff. I am planning to use it as a base for my lighting code in my game engine. I am currently working on understanding the system and how to do two things.
The first things is that right now the system will always stay at the starting screen position and not follow the view around. This means that when I move around my world, the lighting textures are only rendered at (0,0). I am initializing the LightSystem with an AABB region that is the entire size of my world and I'm updating the viewAABB center when the camera moves. Any ideas what I'm missing?
The other thing is that I have a world made up of tiles that can be added or removed arbitrarily. I was trying to come up with the best way to represent them in the light system as hulls. I have 3 different ideas.
- Create a square hull for each tile.
- Create a huge hull surrounding several connected tiles.
- Go in and modify the light system so that it knows about my tiles and handles them separate from hulls.
I'm leaning towards the first one. I could only create hulls for the tiles that are nearby the player. Any suggestions?
Once again, this is great stuff. Thanks for releasing it!