mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-09-30 22:57:30 +02:00
Adjust handling of transparent biome shading files (grass, foliage), as used in Painter's texture pack
This commit is contained in:
parent
cd067adfdc
commit
93613404ba
@ -1162,11 +1162,13 @@ public class TexturePack {
|
|||||||
else {
|
else {
|
||||||
clr = biomeLookup(li.argb, li.width, mapiter.getRawBiomeRainfall(), mapiter.getRawBiomeTemperature());
|
clr = biomeLookup(li.argb, li.width, mapiter.getRawBiomeRainfall(), mapiter.getRawBiomeTemperature());
|
||||||
}
|
}
|
||||||
|
if((clr & 0xFF000000) != 0) {
|
||||||
if(swamp_shaded && (mapiter.getBiome() == Biome.SWAMPLAND))
|
if(swamp_shaded && (mapiter.getBiome() == Biome.SWAMPLAND))
|
||||||
clr = (clr & 0xFF000000) | (((clr & 0x00FEFEFE) + 0x4E0E4E) / 2);
|
clr = (clr & 0xFF000000) | (((clr & 0x00FEFEFE) + 0x4E0E4E) / 2);
|
||||||
rslt.blendColor(clr);
|
rslt.blendColor(clr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private static final int biomeLookup(int[] argb, int width, double rainfall, double temp) {
|
private static final int biomeLookup(int[] argb, int width, double rainfall, double temp) {
|
||||||
int w = width-1;
|
int w = width-1;
|
||||||
|
Loading…
Reference in New Issue
Block a user