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

Do a proof of concept of marching the first steps in the vertex shader #8

Open
virtualzavie opened this issue Aug 20, 2024 · 0 comments

Comments

@virtualzavie
Copy link
Contributor

The idea is the following: all the steps that can be done conservatively in the vertex shader, are a cost saved many folds in the fragment shader.

Considering this vertex shader marching as a low resolution pass, I suspect that there is a tradeoff between that resolution, how many steps can be done, and how much cost is saved. I also suspect that this tradeoff will likely be optimal somewhere between 16x16 and 64x64 pixels.

If this approach works, there will be non trivial problems to solve, including the correct duplication of the shader.
To know if it's worth it, a first step is simply to test doing such a 2 stage ray marching.

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