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

Improve 2D Particle Emission Mask dialog #101165

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timoschwarzer
Copy link
Contributor

In this PR I reworked the 2D particles emission mask dialog (C/GPUParticles2D → Load Emission Mask in the 2D viewport).

Screencast.From.2025-01-05.23-34-47.mp4

Before, it was only possible to let Godot generate an emission direction texture when using the "Directed Border Pixels" mode. With this PR, you can specify a custom normal map to use. Additionally, the "Centered" checkbox is now checked by default because all other emission shapes are also centered by default.

I refactored some code as well because I found some parts of it hard to read and understand due to undocumented abbreviations.

If you want to test this, make sure to also merge #101162 because emission mask textures are currently broken for GPUParticles2D.

@timoschwarzer timoschwarzer force-pushed the feature/2d-particle-emission-textures-refactor branch from 5b20953 to 257d9bb Compare March 12, 2025 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants