3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-26 10:35:27 +02:00

Merge pull request from huffman/light-radius

Update Light to set direction when setting orientation
This commit is contained in:
Brad Hefta-Gaub 2015-03-03 15:50:04 -08:00
commit 9649ed9936

View file

@ -44,6 +44,7 @@ void Light::setPosition(const Vec3& position) {
}
void Light::setOrientation(const glm::quat& orientation) {
setDirection(orientation * glm::vec3(0.0f, 0.0f, -1.0f));
_transform.setRotation(orientation);
}