Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 116 vs 117 for /trunk/Source Code/Environment/Terrain/Terrain.cpp

Diff revisions: vs.
  @@ -2,7 +2,6 @@
2 2 #include "Headers/TerrainChunk.h"
3 3
4 4 #include "Managers/Headers/SceneManager.h"
5 - #include "Managers/Headers/CameraManager.h"
6 5 #include "Quadtree/Headers/Quadtree.h"
7 6 #include "Quadtree/Headers/QuadtreeNode.h"
8 7 #include "Hardware/Video/VertexBufferObject.h"
  @@ -102,10 +101,10 @@
102 101 void Terrain::drawInfinitePlain(){
103 102 if(_drawInReflection) return;
104 103
105 - const vec3<F32>& eyePos = CameraManager::getInstance().getActiveCamera()->getEye();
106 - _planeTransform->setPositionX(eyePos.x);
107 - _planeTransform->setPositionZ(eyePos.z);
108 - _planeSGN->getBoundingBox().Transform(_planeSGN->getInitialBoundingBox(),_planeTransform->getMatrix());
104 + _planeTransform->setPositionX(_eyePos.x);
105 + _planeTransform->setPositionZ(_eyePos.z);
106 + _planeSGN->getBoundingBox().Transform(_planeSGN->getInitialBoundingBox(),
107 + _planeTransform->getMatrix());
109 108
110 109 GFX_DEVICE.setObjectState(_planeTransform);
111 110 GFX_DEVICE.renderModel(_plane);