1 #include <Engine/Scene/Light.hpp>
3 #include <Engine/Data/RenderParameters.hpp>
4 #include <Engine/RadiumEngine.hpp>
10 Component( name, entity ), m_type( type ) {
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 mergeReplaceParameters(const RenderParameters ¶ms)
A component is an element that can be updated by a system. It is also linked to some other components...
An entity is an scene element. It ties together components with a transform.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Light(Entity *entity, const LightType &type, const std::string &name="light")
virtual std::string getShaderInclude() const
void initialize() override
const Data::RenderParameters & getRenderParameters() const
Gives read-only access to the renderParameters of the light.