Particle layer#1842
Merged
diogotr7 merged 13 commits intoantonpup:devfrom Apr 24, 2020
Wibble199:feature/particle-layer
Merged
Conversation
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).
Merged
diogotr7
previously approved these changes
Apr 24, 2020
diogotr7
approved these changes
Apr 24, 2020
This file contains hidden or 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
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