1#ifndef PIXELPART_NOISE_FIELD_H
2#define PIXELPART_NOISE_FIELD_H
4#include "PixelpartForceField.h"
5#include "../property/PixelpartStaticPropertyInt.h"
6#include "../property/PixelpartStaticPropertyFloat.h"
7#include "../property/PixelpartAnimatedPropertyFloat.h"
8#include <pixelpart-runtime/effect/NoiseField.h>
16class PixelpartNoiseField :
public PixelpartForceField {
17 GDCLASS(PixelpartNoiseField, PixelpartForceField)
20 PixelpartNoiseField();
21 virtual ~PixelpartNoiseField();
30 virtual void init(pixelpart::Node* internalNode, pixelpart::EffectEngine* effectEnginePtr)
override;
91 static void _bind_methods();
94 pixelpart::NoiseField* noiseField =
nullptr;
bool noise_animated
Whether the noise field is animated.
Definition PixelpartNoiseField.h:27
Ref< PixelpartStaticPropertyFloat > get_noise_animation_time_base() const
Time offset of the noise animation.
Definition PixelpartNoiseField.cpp:84
Ref< PixelpartStaticPropertyInt > get_noise_octaves() const
How many layers of noise are blended together to produce the final velocity vector.
Definition PixelpartNoiseField.cpp:18
Ref< PixelpartAnimatedPropertyFloat > get_noise_frequency() const
Base frequency of the noise generation.
Definition PixelpartNoiseField.cpp:29
Ref< PixelpartStaticPropertyFloat > get_noise_animation_time_scale() const
How fast the noise field changes.
Definition PixelpartNoiseField.cpp:73
Ref< PixelpartAnimatedPropertyFloat > get_noise_persistence() const
How much the amplitude changes after each noise octave.
Definition PixelpartNoiseField.cpp:40
Ref< PixelpartAnimatedPropertyFloat > get_noise_lacunarity() const
How much the frequency changes after each noise octave.
Definition PixelpartNoiseField.cpp:51
void set_noise_animated(bool animated)
Set whether the noise field is animated.
Definition PixelpartNoiseField.cpp:63
bool is_noise_animated() const
Whether the noise field is animated.
Definition PixelpartNoiseField.cpp:70