1#ifndef PIXELPART_LIGHT_SOURCE_H
2#define PIXELPART_LIGHT_SOURCE_H
4#include "PixelpartNode.h"
5#include "../property/PixelpartAnimatedPropertyFloat.h"
6#include "../property/PixelpartAnimatedPropertyFloat4.h"
7#include <pixelpart-runtime/effect/LightSource.h>
20class PixelpartLightSource :
public PixelpartNode {
21 GDCLASS(PixelpartLightSource, PixelpartNode)
24 PixelpartLightSource();
25 virtual ~PixelpartLightSource();
27 virtual void init(pixelpart::Node* internalNode, pixelpart::EffectEngine* effectEnginePtr)
override;
41 Ref<PixelpartAnimatedPropertyFloat4>
get_color()
const;
51 static void _bind_methods();
54 pixelpart::LightSource* lightSource =
nullptr;
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