mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:52:26 +02:00
spacing
This commit is contained in:
parent
a6f7a1ce15
commit
eaaaa0687c
1 changed files with 1 additions and 1 deletions
|
@ -591,7 +591,7 @@ PickRay ViewFrustum::computePickRay(float x, float y) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ViewFrustum::computePickRay(float x, float y, glm::vec3& origin, glm::vec3& direction) const {
|
void ViewFrustum::computePickRay(float x, float y, glm::vec3& origin, glm::vec3& direction) const {
|
||||||
origin = _nearTopLeft + x*(_nearTopRight - _nearTopLeft) + y*(_nearBottomLeft - _nearTopLeft);
|
origin = _nearTopLeft + x * (_nearTopRight - _nearTopLeft) + y * (_nearBottomLeft - _nearTopLeft);
|
||||||
direction = glm::normalize(origin - (_position + _orientation * _eyeOffsetPosition));
|
direction = glm::normalize(origin - (_position + _orientation * _eyeOffsetPosition));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue