How to implement shadow in Defold

Are you talking about ray/shadowcasting like this: