buildings: decrease contrast with z-distance

This commit is contained in:
Hannes Janetzek
2013-01-05 20:49:23 +01:00
parent 70b7c79a8e
commit ed39f9fe34
2 changed files with 28 additions and 15 deletions

View File

@@ -203,8 +203,9 @@ public class ExtrusionLayer extends Layer {
float ca = (float) Math.sqrt(vx * vx + vy * vy);
float vlight = vx > 0 ? (vx / ca) : -(vx / ca) - 0.1f;
//float vlight = vx / ca;
short color1 = (short) (200 + (50 * vlight));
short color1 = (short) (230 + (25 * vlight));
short fcolor = color1;
short color2 = 0;
@@ -262,7 +263,8 @@ public class ExtrusionLayer extends Layer {
ca = (float) Math.sqrt(vx * vx + vy * vy);
vlight = vx > 0 ? (vx / ca) : -(vx / ca) - 0.1f;
color2 = (short) (200 + (50 * vlight));
//vlight = vx / ca;
color2 = (short) (230 + (25 * vlight));
short c;
if (even == 0)