community-rpg icon indicating copy to clipboard operation
community-rpg copied to clipboard

Switch to Raycasted Shadows

Open benjamin-kirkbride opened this issue 3 years ago • 2 comments

https://api.arcade.academy/en/latest/tutorials/raycasting/index.html

benjamin-kirkbride avatar May 02 '22 20:05 benjamin-kirkbride

The referenced effect runs extremely slowly on my system due to a weak GPU. We may want to look into optimizing it or offering graphics settings options in the game's menus.

pushfoo avatar Feb 16 '23 07:02 pushfoo

There are more efficient tricks such as "spherical projection" (done in pixel shader) creating a 1D array. This array is wrapped around a full circle to look up shadow values. It can be pre-computed for static environment lights that don't cast shadows on moving objects.

einarf avatar Feb 16 '23 22:02 einarf