mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 18:53:36 +02:00
Update Light to set direction when setting orientation
This commit is contained in:
parent
29340b6586
commit
3fef8a1622
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue