Starting to integrate mesh optimizer

This commit is contained in:
Dynamitos
2025-05-12 22:48:01 +02:00
parent 10f2a9235b
commit f873d6db26
21 changed files with 446 additions and 288 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ DirectionalLightActor::DirectionalLightActor(PScene scene, Vector color, float i
float angle = std::acos(dot); // angle between vectors
rotation = glm::angleAxis(angle, axis);
}
attachComponent<Component::Transform>(Math::Transform(Vector(0, 0, 0), rotation));
getTransform().setRotation(rotation);
}
DirectionalLightActor::~DirectionalLightActor() {}
+1 -1
View File
@@ -6,7 +6,7 @@ PointLightActor::PointLightActor(PScene scene) : Actor(scene) { attachComponent<
PointLightActor::PointLightActor(PScene scene, Vector position, float intensity, Vector color, float attenuation) : Actor(scene) {
attachComponent<Component::PointLight>(color, intensity, attenuation);
attachComponent<Component::Transform>(Math::Transform(position));
getTransform().setPosition(position);
}
PointLightActor::~PointLightActor() {}