79 FCT::Vec3 direction = FCT::Vec3(0.0f, -1.0f, 0.0f);
80 FCT::Vec3 color = FCT::Vec3(1.0f, 1.0f, 1.0f);
81 float intensity = 1.0f;
84 DirectionalLightComponent() =
default;
86 DirectionalLightComponent(
const FCT::Vec3& dir,
const FCT::Vec3& col,
float intens,
bool enable =
true)
87 : direction(dir), color(col), intensity(intens), enabled(enable)
91 friend class boost::serialization::access;
93 template<
class Archive>
94 void serialize(Archive & ar,
const unsigned int version)
106 std::string modelUuid;
107 std::string texturePath;
108 FCT::Image* texture =
nullptr;
109 DiffuseTextureComponent() =
default;
111 DiffuseTextureComponent(
const std::string& uuid,
const std::string& path)
112 : modelUuid(uuid), texturePath(path)
116 friend class boost::serialization::access;
117 template<
class Archive>
118 void serialize(Archive & ar,
const unsigned int version)