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 support for opaque 2D rendering #348

Open
djeedai opened this issue Jun 24, 2024 · 0 comments
Open

Add support for opaque 2D rendering #348

djeedai opened this issue Jun 24, 2024 · 0 comments
Labels
A - internal Internal change on a core system C - breaking change A breaking API or behavior change C - enhancement New feature or request

Comments

@djeedai
Copy link
Owner

djeedai commented Jun 24, 2024

Describe the solution you'd like

Bevy now supports separate opaque and transparent 2D render phases. For opaque 2D particles, we should use the opaque pass (and enable depth write).

Describe why you want that solution. Is this related to a problem?

  • It's cleaner.
  • It allows using depth write by default, which works around the lack of sorting.

Describe alternatives you've considered

Leave as is. This works now, just not optimal.

Additional context

There's no particle sorting, so the default rendering in the transparent phase with depth write disabled produces flickering particles.

@djeedai djeedai added C - enhancement New feature or request A - internal Internal change on a core system C - breaking change A breaking API or behavior change labels Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A - internal Internal change on a core system C - breaking change A breaking API or behavior change C - enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant