3#include <Engine/RaEngine.hpp>
4#include <Engine/Scene/Light.hpp>
21 void setDirection(
const Eigen::Matrix<Scalar, 3, 1>& dir )
override;
22 inline const Eigen::Matrix<Scalar, 3, 1>& getDirection()
const;
27 Eigen::Matrix<Scalar, 3, 1> m_direction { 0, -1, 0 };
34 m_direction = dir.normalized();
38inline 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