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

Rethink shadow #12

Open
LukasKalbertodt opened this issue Feb 20, 2017 · 0 comments
Open

Rethink shadow #12

LukasKalbertodt opened this issue Feb 20, 2017 · 0 comments

Comments

@LukasKalbertodt
Copy link
Owner

Currently, shadow is produced by ray marching from the light (or rather: sufficiently far outside of the fractal) to the surface point to check if the path is blocked. This approach has several shortcomings (right now):

  • There are many artifacts, probably due to a rather unprecise DE
  • The current implementation has quite a few magic constants for fine tuning several values. Reducing the number of parameters would be a good idea.
  • It's slow: even with at most 10 iterations, the framerate on my slow notebook GPU drops below 60. Querying the DE a bunch of times in the shader is not the best idea, I guess...

I see three possibilities:

  1. improve the current algorithm
  2. reverse the direction of the ray: start at the surface point and march towards the light
  3. scratch ray marching altogether and use a simple shadow map approach (which might be extremely complicated when "zooming in")
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

1 participant