junkdog / artemis-odb

A continuation of the popular Artemis ECS framework
BSD 2-Clause "Simplified" License
769 stars 109 forks source link

[Question] Has anyone done a lighting system using RenderBatchingSystem from contrib? #627

Closed bryanbrunt closed 3 years ago

bryanbrunt commented 3 years ago

I'm creating day/night cycles for my game, which you can see here:

https://www.commonwombat.com/blog/

I'm using the RenderBatchingSystem from the contrib. But I'm struggling with how implement a system that works well with multiple light sources.

Has anyone implemented a lighting system using OrthogonalTiledMapRenderer with artemis?

bryanbrunt commented 3 years ago

I eventually resolved this. I had to perform the alpha blending after the RenderingBatchSystem draws to the screen, not before. This isn't an Artemis core issue anyway, as RenderingBatch is contrib.