Starting to integrate mesh optimizer
This commit is contained in:
@@ -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() {}
|
||||
|
||||
@@ -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() {}
|
||||
|
||||
Reference in New Issue
Block a user