TileMesh translucency is now a percent to remove from the tile light value

I guess this kind of makes it "opaqueness" instead of "translucency"
This commit is contained in:
Gered 2013-07-21 09:52:33 -04:00
parent 70ccaedb0a
commit e24c9c6ec6

View file

@ -118,7 +118,7 @@ public final class Tile {
}
public static byte adjustLightForTranslucency(byte light, float translucency) {
return (byte)Math.round((float)light * translucency);
return (byte)Math.round((float)light * (1.0f - translucency));
}
public static Matrix4 getTransformationFor(Tile tile) {