mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:37:51 +02:00
Fixing the assignment client
This commit is contained in:
parent
666caf0d59
commit
464925ecc7
1 changed files with 5 additions and 5 deletions
|
@ -258,11 +258,11 @@ bool OctreeQueryNode::updateCurrentViewFrustum() {
|
||||||
float originalFOV = getCameraFov();
|
float originalFOV = getCameraFov();
|
||||||
float wideFOV = originalFOV + VIEW_FRUSTUM_FOV_OVERSEND;
|
float wideFOV = originalFOV + VIEW_FRUSTUM_FOV_OVERSEND;
|
||||||
|
|
||||||
newestViewFrustum.setFieldOfView(wideFOV); // hack
|
newestViewFrustum.setProjection(glm::perspective(
|
||||||
newestViewFrustum.setAspectRatio(getCameraAspectRatio());
|
glm::radians(wideFOV), // hack
|
||||||
newestViewFrustum.setNearClip(getCameraNearClip());
|
getCameraAspectRatio(),
|
||||||
newestViewFrustum.setFarClip(getCameraFarClip());
|
getCameraNearClip(),
|
||||||
newestViewFrustum.setEyeOffsetPosition(getCameraEyeOffsetPosition());
|
getCameraFarClip()));
|
||||||
|
|
||||||
// if there has been a change, then recalculate
|
// if there has been a change, then recalculate
|
||||||
if (!newestViewFrustum.isVerySimilar(_currentViewFrustum)) {
|
if (!newestViewFrustum.isVerySimilar(_currentViewFrustum)) {
|
||||||
|
|
Loading…
Reference in a new issue