3#include <Core/CoreMacros.hpp>
5#include <Engine/Data/RenderParameters.hpp>
6#include <Engine/RaEngine.hpp>
7#include <Engine/Scene/Light.hpp>
26 void setDirection(
const Eigen::Matrix<Scalar, 3, 1>& dir )
override;
27 inline const Eigen::Matrix<Scalar, 3, 1>& getDirection()
const;
32 Eigen::Matrix<Scalar, 3, 1> m_direction { 0, -1, 0 };
39 m_direction = dir.normalized();
43inline const Eigen::Matrix<Scalar, 3, 1>& DirectionalLight::getDirection()
const {
void setVariable(const std::string &name, RenderParameters &rp)
overload create ref wrapper for RenderParameters variable
void setDirection(const Eigen::Matrix< Scalar, 3, 1 > &dir) override
An entity is an scene element. It ties together components with a transform.
const Data::RenderParameters & getRenderParameters() const
Gives read-only access to the renderParameters of the light.
hepler function to manage enum as underlying types in VariableSet