Pixelpart 1.8.2
Godot Plugin
Loading...
Searching...
No Matches
PixelpartSpotLightSource.h
1#ifndef PIXELPART_SPOT_LIGHT_SOURCE_H
2#define PIXELPART_SPOT_LIGHT_SOURCE_H
3
4#include "PixelpartLightSource.h"
5#include "../property/PixelpartAnimatedPropertyFloat.h"
6#include <pixelpart-runtime/effect/SpotLightSource.h>
7
8namespace godot {
14class PixelpartSpotLightSource : public PixelpartLightSource {
15 GDCLASS(PixelpartSpotLightSource, PixelpartLightSource)
16
17public:
18 PixelpartSpotLightSource();
19 virtual ~PixelpartSpotLightSource();
20
21 virtual void init(pixelpart::Node* internalNode, pixelpart::EffectEngine* effectEnginePtr) override;
22
28 Ref<PixelpartAnimatedPropertyFloat> get_spot_angle() const;
29
35 Ref<PixelpartAnimatedPropertyFloat> get_spot_angle_attenuation() const;
36
37protected:
38 static void _bind_methods();
39
40private:
41 pixelpart::SpotLightSource* spotLightSource = nullptr;
42};
43}
44
45#endif
Ref< PixelpartAnimatedPropertyFloat > get_spot_angle() const
Width of the light cone in degrees.
Definition PixelpartSpotLightSource.cpp:17
Ref< PixelpartAnimatedPropertyFloat > get_spot_angle_attenuation() const
How much the light looses intensity near the edge of the light cone.
Definition PixelpartSpotLightSource.cpp:28