mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
fix incorrect rescale of vec3
This commit is contained in:
parent
c8e56a97cc
commit
0e3d66caf6
1 changed files with 1 additions and 1 deletions
|
@ -652,7 +652,7 @@ bool sphereAACube(const glm::vec3& sphereCenter, float sphereRadius, const glm::
|
|||
// sphere center is inside cube
|
||||
// --> push out nearest face
|
||||
glm::vec3 direction;
|
||||
BA /= distance;
|
||||
BA /= maxBA;
|
||||
glm::modf(BA, direction);
|
||||
direction = glm::normalize(direction);
|
||||
|
||||
|
|
Loading…
Reference in a new issue