From 3817acdb49d775edb23fafbed70095be8f648ed6 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 9 Apr 2011 20:22:13 +0200 Subject: Terrain multitexturing. --- quadtree.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'quadtree.cpp') 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 -#include - #include "gl.h" #include @@ -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() { -- cgit v1.2.3