Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 988 vs 1021 for /trunk/Source Code/Rendering/Camera/Camera.cpp

Diff revisions: vs.
  @@ -392,7 +392,7 @@
392 392 return false;
393 393 }
394 394
395 - _frustum->Extract(getViewMatrix(), _projectionMatrix);
395 + _frustum->Extract(getViewMatrix(), getProjectionMatrix());
396 396
397 397 _frustumDirty = false;
398 398
  @@ -404,7 +404,7 @@
404 404 temp.x = (temp.x - F32(viewport[0])) / F32(viewport[2]);
405 405 temp.y = (temp.y - F32(viewport[1])) / F32(viewport[3]);
406 406
407 - temp = _frustum->_viewProjectionMatrixCache.getInverse() * (2.0f * temp - 1.0f);
407 + temp = (getViewMatrix() * getProjectionMatrix()).getInverse() * (2.0f * temp - 1.0f);
408 408 temp /= temp.w;
409 409
410 410 return temp.xyz();