Pixelpart 1.8.2
Godot Plugin
Loading...
Searching...
No Matches
PixelpartNoiseField.h
1#ifndef PIXELPART_NOISE_FIELD_H
2#define PIXELPART_NOISE_FIELD_H
3
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>
9
10namespace godot {
16class PixelpartNoiseField : public PixelpartForceField {
17 GDCLASS(PixelpartNoiseField, PixelpartForceField)
18
19public:
20 PixelpartNoiseField();
21 virtual ~PixelpartNoiseField();
22
23#ifdef DOXYGEN
28#endif
29
30 virtual void init(pixelpart::Node* internalNode, pixelpart::EffectEngine* effectEnginePtr) override;
31
37 Ref<PixelpartStaticPropertyInt> get_noise_octaves() const;
38
46 Ref<PixelpartAnimatedPropertyFloat> get_noise_frequency() const;
47
53 Ref<PixelpartAnimatedPropertyFloat> get_noise_persistence() const;
54
60 Ref<PixelpartAnimatedPropertyFloat> get_noise_lacunarity() const;
61
67 void set_noise_animated(bool animated);
68
74 bool is_noise_animated() const;
75
81 Ref<PixelpartStaticPropertyFloat> get_noise_animation_time_scale() const;
82
88 Ref<PixelpartStaticPropertyFloat> get_noise_animation_time_base() const;
89
90protected:
91 static void _bind_methods();
92
93private:
94 pixelpart::NoiseField* noiseField = nullptr;
95};
96}
97
98#endif
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