Commit d997d0e2 authored by Florian Oetke's avatar Florian Oetke
Browse files

added constructor parameter to renderer::Material_properties_comp

parent 97d1f27e
Pipeline #3415 passed with stage
in 13 minutes and 33 seconds
...@@ -17,7 +17,12 @@ namespace mirrage::renderer { ...@@ -17,7 +17,12 @@ namespace mirrage::renderer {
static constexpr const char* name() { return "Material_property"; } static constexpr const char* name() { return "Material_property"; }
Material_property_comp() = default; Material_property_comp() = default;
Material_property_comp(ecs::Entity_handle owner, ecs::Entity_manager& em) : Component(owner, em) {} Material_property_comp(ecs::Entity_handle owner,
ecs::Entity_manager& em,
glm::vec4 emissive_color = glm::vec4(1, 1, 1, 1000.f))
: Component(owner, em), emissive_color(emissive_color)
{
}
glm::vec4 emissive_color = glm::vec4(1, 1, 1, 1000.f); glm::vec4 emissive_color = glm::vec4(1, 1, 1, 1000.f);
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment