diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-04-09 20:22:13 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-04-09 20:22:13 +0200 |
commit | 3817acdb49d775edb23fafbed70095be8f648ed6 (patch) | |
tree | 088d94ebd9f767e84263e1400db336930a7324cd /quadtree.cpp | |
parent | e19c3838a4d89fb0640ed563ffdf58cd125cde7f (diff) |
Terrain multitexturing.
Diffstat (limited to 'quadtree.cpp')
-rw-r--r-- | quadtree.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/quadtree.cpp b/quadtree.cpp index 1f2dd4a..8bc366c 100644 --- a/quadtree.cpp +++ b/quadtree.cpp @@ -1,9 +1,6 @@ #include "quadtree.h" #include "vector.h" -#include <boost/format.hpp> -#include <boost/timer.hpp> - #include "gl.h" #include <cmath> @@ -333,7 +330,6 @@ Quadtree::Quadtree(int width, int height, float *heightmap) { root = new QuadChunk(this, 0, 0, width-1, height-1); - boost::timer t; normals = new Vector3[width*height]; for(int x = 0; x < width; x++) { for(int y = 0; y < height; y++) { @@ -362,12 +358,9 @@ Quadtree::Quadtree(int width, int height, float *heightmap) { N += V.cross(U); } } - if(N.y < 0) - std::cout << N.str() << std::endl; normals[x*height + y] = N / N.length(); } } - std::cout << "normal time: " << t.elapsed() << std::endl; } Quadtree::~Quadtree() { |