Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Raycasted Shadows #49

Open
benjamin-kirkbride opened this issue May 2, 2022 · 2 comments
Open

Switch to Raycasted Shadows #49

benjamin-kirkbride opened this issue May 2, 2022 · 2 comments

Comments

@benjamin-kirkbride
Copy link
Collaborator

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

@pushfoo
Copy link
Member

pushfoo commented Feb 16, 2023

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.

@einarf
Copy link
Member

einarf commented Feb 16, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants