improve guess for building height, now skylines look better
This commit is contained in:
parent
a03f81d306
commit
9e84a42177
@ -78,11 +78,10 @@ public class ExtrusionLayer extends Layer {
|
||||
boolean simple = true;
|
||||
int startVertex = mNumVertices;
|
||||
|
||||
// just a guess to make it look ok
|
||||
// just a guessing to make it look ok
|
||||
if (height == 0)
|
||||
height = 320;
|
||||
else
|
||||
height *= 30;
|
||||
height = 10;
|
||||
height = (int) (height * -Math.log(height / 100000f)) * 4;
|
||||
|
||||
int length = 0;
|
||||
for (int ipos = 0, ppos = 0, n = index.length; ipos < n; ipos++, ppos += length) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user