NodeLight
The NodeLight class provides spatial transformation for a Scene Light. It includes a pivot transformation matrix that affects only the attached Light instance, without affecting its children nodes. This class also allows modification of the Light color and intensity without duplicating the Scene Light itself.
#include <scene/TellusimNodeLight.h>
Inheritance
- Inherits from Node
Constructors
explicit NodeLight(const char *name = nullptr)
explicit NodeLight(Graph &graph, const char *name = nullptr)
explicit NodeLight(Node *parent, const char *name = nullptr)
NodeLight(Graph &graph, Light &light, const char *name = nullptr)
NodeLight(Node *parent, Light &light, const char *name = nullptr)
Methods
Node light.
void setLight(Light &light)
const Light getLight() const
Light getLight()
Light color.
void setColor(Color color)
const Color getColor() const
Light intensity.
void setIntensity(float32_t intensity)
float32_t getIntensity() const
Pivot transform.
void setPivotTransform(Matrix4x3f transform, bool force = false, bool atomic = false)
const Matrix4x3f getPivotTransform() const