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

Improved Volume Rendering #51

Open
cohaereo opened this issue Jan 19, 2025 · 0 comments
Open

Improved Volume Rendering #51

cohaereo opened this issue Jan 19, 2025 · 0 comments

Comments

@cohaereo
Copy link
Owner

In 0.5, volume rendering was changed from additive to alpha blend, making volumes more visible, but also clipping other volumes.
Additionally, volumes are rendered as solid geometry with a wireframe overlayed on top. We can make this look a bit better by using depth/normal edge detection

  • Prepare a screen-space depth buffer.
  • Prepare a screen-space color buffer. This will be composited over the main image
  • For each displayed volume:
    • Clear the depth buffer
    • Render the volume to the depth buffer
    • Run a screenspace shader that takes the depth buffer, using edge detection for the 'wireframe', that additively draws the volume onto the color buffer
  • Alpha blend the color buffer onto the main image
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