Page 1 of 1

What is the best way to make shadows in Love2D?

Posted: Wed Oct 12, 2022 12:26 am
by GuruuNoob
Hi! I started using Love2D 5 months ago, i have a great knowledge of Lua and others languages. Recently i have been searched how to make shadows in Love2D and i'm not finding videos and topics about this.

I have a method to use raycast and find where the shadow be but i dont know how format the pixels or make the visual shadow. :halloween:

Preferably i did not want to use modules, i want to make my complete system for my experience.

Re: What is the best way to make shadows in Love2D?

Posted: Wed Oct 12, 2022 4:39 am
by ReFreezed
What kind of shadows? Is the game 2D or 3D? Side-scrolling or top-down? How simple or complex should they be? Are they static or dynamic? One light source or multiple?

There are many things to consider. There's no "best" way - only different ways, producing different results.

Recent thread about shadows: viewtopic.php?f=3&t=93766
Some light/shadow libraries: https://github.com/love2d-community/awe ... d#lighting