Pixelpart 1.8.2
Godot Plugin
Loading...
Searching...
No Matches
PixelpartLightSource.h
1#ifndef PIXELPART_LIGHT_SOURCE_H
2#define PIXELPART_LIGHT_SOURCE_H
3
4#include "PixelpartNode.h"
5#include "../property/PixelpartAnimatedPropertyFloat.h"
6#include "../property/PixelpartAnimatedPropertyFloat4.h"
7#include <pixelpart-runtime/effect/LightSource.h>
8
9namespace godot {
20class PixelpartLightSource : public PixelpartNode {
21 GDCLASS(PixelpartLightSource, PixelpartNode)
22
23public:
24 PixelpartLightSource();
25 virtual ~PixelpartLightSource();
26
27 virtual void init(pixelpart::Node* internalNode, pixelpart::EffectEngine* effectEnginePtr) override;
28
34 Ref<PixelpartAnimatedPropertyFloat> get_attenuation() const;
35
41 Ref<PixelpartAnimatedPropertyFloat4> get_color() const;
42
48 Ref<PixelpartAnimatedPropertyFloat> get_intensity() const;
49
50protected:
51 static void _bind_methods();
52
53private:
54 pixelpart::LightSource* lightSource = nullptr;
55};
56}
57
58#endif
Ref< PixelpartAnimatedPropertyFloat > get_intensity() const
How strongly the light shines.
Definition PixelpartLightSource.cpp:41
Ref< PixelpartAnimatedPropertyFloat > get_attenuation() const
How quickly the light looses intensity on the way to its outer radius.
Definition PixelpartLightSource.cpp:19
Ref< PixelpartAnimatedPropertyFloat4 > get_color() const
Color of the light emitted by the light source.
Definition PixelpartLightSource.cpp:30