forked from Dynamitos/Seele
Starting to integrate mesh optimizer
This commit is contained in:
1 parent
10f2a9235b
commit
f873d6db26
21 files changed
+446
-288
No files matched your search
@@ -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() {}
|
||||
|
||||
Reference in new issue
Block a user