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

Write to depth buffer in alpha mask mode #305

Merged
merged 1 commit into from
Mar 19, 2024
Merged

Commits on Mar 19, 2024

  1. Write to depth buffer in alpha mask mode

    When rendering particles in alpha mask mode, there's no transparency
    involved; each fragment is either fully opaque or fully transparent.
    Therefore we can use the depth buffer, and don't need some fancy order
    independent transparency rendering or distance based sorting (which are
    not implemented).
    
    This change enables depth writing when rendering particles through the
    `AlphaMask3d` render pass. This prevents particles from flickering, as
    visible in the `billboard.rs` example.
    
    Partially fixes #183 (for non-transparent effects)
    djeedai committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    35fda05 View commit details
    Browse the repository at this point in the history