Lighting system for Cavery

Light (and darkness) will be an important part of Cavery. I want the player to feel small and vulnerable; most of the screen will be covered in black. That's why I'm working on a 2D lighting system. It's based mostly on shaders at the moment. All rendering is made by libgdx, of course!
That's the visible geometry (not covered by shadows):

First, I'm calculating visible area (using straightedge library, don't know if I'll stick with it):
Then I'm blurring it a bit to make the shadows softer and more realistic. Notice how they get softer with increasing distance from light source.
Then I'm merging it with the original geometry with a little bit of additional effects (edges catch light, see it?).
I'm pretty satisfied with the outcome. What do you think about it? Oh, and there's another one version, where objects are hidden in shadows, only their edges catch some light):

6 Response to "Lighting system for Cavery"

  1. Danik says:

    Looks sweet, nice soft shadows!

    Anonimowy says:

    Great job, any chance to see part of the code :-) will be nice to have a glimpse of it in libgdx forum...

    Anyway, nice work

    Anaminka says:



    After this brings up its clients get entertained well with its premium services, the Call Girls in Mahipalpur is liable to increase the level of fun by its quality services dissimilar to get anywhere. So, let us forget everything and take pleasure in what you wait for a long time. Check our other Services...
    Call Girls in Vasant Kunj
    Escorts in Mahipalpur
    Escorts Service in Vasant Vihar
    Russian Escorts in Dwarka
    Female Escorts in Aerocity
    Escorts in Vasant Vihar

    baokaase says:

    How to play slot games online with your smartphone
    Slot games, though, 식스 먹튀 are widely 해외 안전 놀이터 accepted 승부사 온라인 환전 in the United States and some other parts of the 토토커뮤니티 world. These include some of the 강원랜드 떡 most popular slot Sep 10, 2020 · Uploaded by Casino Sites

    WildCrack says:

    If you are interested in Android Apps, PC Softwares and MAC Applications then you can visit our official websites for registered applications which you can download full free without paying any charges. Then Follow Our Blogs
    Ivcam Crack
    Autocad 2018 Crack
    Driver Toolkit Crack

Prześlij komentarz

Powered by Blogger