3 #include <Engine/RaEngine.hpp>
4 #include <Engine/Scene/Light.hpp>
18 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
23 void setDirection(
const Eigen::Matrix<Scalar, 3, 1>& dir )
override;
24 inline const Eigen::Matrix<Scalar, 3, 1>& getDirection()
const;
26 std::string getShaderInclude()
const override;
29 Eigen::Matrix<Scalar, 3, 1> m_direction { 0, -1, 0 };
36 m_direction = dir.normalized();
40 inline const Eigen::Matrix<Scalar, 3, 1>& DirectionalLight::getDirection()
const {
void addParameter(const std::string &name, T value, typename std::enable_if<!std::is_class< T > {}, bool >::type=true)
Add a parameter by value.
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.