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

[Feature] Kill particles when they go offscreen #209

Open
djeedai opened this issue Jul 16, 2023 · 0 comments
Open

[Feature] Kill particles when they go offscreen #209

djeedai opened this issue Jul 16, 2023 · 0 comments
Labels
A - modifiers Change related to modifiers C - enhancement New feature or request

Comments

@djeedai
Copy link
Owner

djeedai commented Jul 16, 2023

Describe the solution you'd like

Split from #118.

A new KillOffscreenModifier modifier killing particles when the go offscreen.

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

Often visual effects are just that, visual, and simulating particles which are offscreen and not rendered is a waste of GPU resources. In some cases (but not all) the camera is constrained in such a way that once a particle goes offscreen it can't be visible again. Making sure the particle is not simulated in this case is otherwise quite difficult without this modifier.

Describe alternatives you've considered

Use KillAabbModifier for 2D, when the camera cannot rotate. There's no real equivalent for 3D.

@djeedai djeedai added C - enhancement New feature or request A - modifiers Change related to modifiers labels Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A - modifiers Change related to modifiers C - enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant