-
Notifications
You must be signed in to change notification settings - Fork 367
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
Particle layer #1842
Merged
Merged
Particle layer #1842
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This control is based on the equalizer's preview and is able to preview the output of a single layer. Layers wishing to have a preview need to implement the new INotifyRender interface (in the Aurora.Settings.Layers namespace). Added preview to the particle control.
Does not respect rotated freeform objects, but that would be a real pain and would be doing somewhat expensive trigonomentry to do, so I'm not gonna.
…dition. This is different to just enabling the layer itself, as disabling this means any currently spawned particles continue as normal.
Similar to acceleration in that it affects the velocity of the particle each frame, but does so as a proportion of the particle's current velocity instead of a fixed amount. This can be used to slow particles down without having them move in the opposite direction. Also made the presets apply the default particle layer settings before applying the preset. This means that if more properties are added in future, the presets will use the default values for these.
… be reused elsewhere if required.
…he location of the pressed key. (Note that it currently uses the regular particle layer control and the spawn location needs to be set to region).
Wibble199
force-pushed
the
feature/particle-layer
branch
from
April 24, 2020 09:10
b2c7146
to
1e779b9
Compare
Wibble199
force-pushed
the
feature/particle-layer
branch
from
April 24, 2020 10:48
f17f6ff
to
91882e7
Compare
Merged
diogotr7
previously approved these changes
Apr 24, 2020
diogotr7
approved these changes
Apr 24, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds an experimental particle layer that can be customised for different effects. The layer periodically spawns "particles" (from any edge of the canvas or from a configurable region) which are then procedurely animated. The particles can be given an initial velocity in X and Y directions, and then will be affected by an acceleration amount each frame. The particles last for a set amount of time and are removed at the end of their life. They can also be coloured based on their remaining life (so it could, for example fade out over time).
Demo of the fire preset