From 5454a7ddebe86bf9cb15efeabcc59790e34f68eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20F=C3=BCndgens?= Date: Mon, 15 Dec 2014 16:34:44 +0100 Subject: [PATCH] Doubled heightmap scale. --- terrain.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terrain.cc b/terrain.cc index cdc790a..ea2ce0d 100644 --- a/terrain.cc +++ b/terrain.cc @@ -22,7 +22,7 @@ void Terrain::load() { for(unsigned int rowNum = 0; rowNum < this->heightmapHeight; rowNum++){ //read in the heightmap this->heightmap[rowNum] = new float[this->heightmapWidth]; for(unsigned int columnNum = 0; columnNum < this->heightmapWidth; columnNum++){ - this->heightmap[rowNum][columnNum] = (float)(image[(rowNum*heightmapWidth+columnNum)*4]) / 32; + this->heightmap[rowNum][columnNum] = (float)(image[(rowNum*heightmapWidth+columnNum)*4]) / 16; } }