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

Add better shadow #10

Open
2 of 4 tasks
zakorgy opened this issue Sep 14, 2020 · 1 comment
Open
2 of 4 tasks

Add better shadow #10

zakorgy opened this issue Sep 14, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@zakorgy
Copy link
Owner

zakorgy commented Sep 14, 2020

The current shadow implementation uses shadow mapping (render the screen from the lights view to a deth buffer, and use that depth to calucalte shadow), but is a bit hacky in the shader.
There are many more ways it can be improved:

@zakorgy zakorgy added the enhancement New feature or request label Sep 14, 2020
@zakorgy
Copy link
Owner Author

zakorgy commented Sep 27, 2020

The global light with orthographic projection for light and shadow was added in #17
Also sampler2DShadow was replaced with sampler2D in that PR, because it produces a better result

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

No branches or pull requests

1 participant