mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Fix shadowed orientation in LightStage
This commit is contained in:
parent
e2158e48a1
commit
710fb5df53
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ void LightStage::Shadow::setKeylightFrustum(ViewFrustum* viewFrustum, float zBac
|
|||
} else {
|
||||
auto side = glm::normalize(glm::cross(direction, IDENTITY_UP));
|
||||
auto up = glm::normalize(glm::cross(side, direction));
|
||||
auto orientation = glm::quat(glm::mat3(direction, up, side));
|
||||
orientation = glm::quat(glm::mat3(direction, up, side));
|
||||
}
|
||||
_frustum->setOrientation(orientation);
|
||||
|
||||
|
|
Loading…
Reference in a new issue