feat!: Update flame_noise to use latest version of fast_noise (#3015)

Update flame_noise to use the latest version of fast_noise, basically
replacing the Perlin-specific effect controller with a generic
`NoiseEffectController` that can take in any noise class (leveraging the
new Noise2 interface).

Just update from `PerlinNoiseEffectController` to
`NoiseEffectController` and provide the noise/parameters you want
directly into the `noise` field.

---------

Co-authored-by: Lukas Klingsbo <me@lukas.fyi>
This commit is contained in:
Luan Nico
2024-02-04 10:37:54 -05:00
committed by GitHub
parent 343bdca79b
commit 2fd84c846f
7 changed files with 38 additions and 29 deletions

View File

@ -85,7 +85,10 @@ This examples showcases how raycast APIs can be used to detect hits within certa
camera.viewfinder.add(
MoveEffect.by(
Vector2(5, 5),
PerlinNoiseEffectController(duration: 0.2, frequency: 400),
NoiseEffectController(
duration: 0.2,
noise: PerlinNoise(frequency: 400),
),
),
);
}