mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 10:53:34 +02:00
Missed a spot with the conversion from pointers to references.
This commit is contained in:
parent
34565a4956
commit
aff465b17b
2 changed files with 4 additions and 4 deletions
libraries/voxels/src
|
@ -225,7 +225,7 @@ int ViewFrustum::boxInFrustum(const AABox& box) const {
|
|||
return(result);
|
||||
}
|
||||
|
||||
void ViewFrustum::computePickRay(float x, float y, glm::vec3* origin, glm::vec3* direction) const {
|
||||
*origin = _nearTopLeft + x*(_nearTopRight - _nearTopLeft) + y*(_nearBottomLeft - _nearTopLeft);
|
||||
*direction = glm::normalize(*origin - _position);
|
||||
void ViewFrustum::computePickRay(float x, float y, glm::vec3& origin, glm::vec3& direction) const {
|
||||
origin = _nearTopLeft + x*(_nearTopRight - _nearTopLeft) + y*(_nearBottomLeft - _nearTopLeft);
|
||||
direction = glm::normalize(origin - _position);
|
||||
}
|
||||
|
|
|
@ -98,7 +98,7 @@ public:
|
|||
int sphereInFrustum(const glm::vec3& center, float radius) const;
|
||||
int boxInFrustum(const AABox& box) const;
|
||||
|
||||
void computePickRay(float x, float y, glm::vec3* origin, glm::vec3* direction) const;
|
||||
void computePickRay(float x, float y, glm::vec3& origin, glm::vec3& direction) const;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue