mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 21:25:46 +01:00
Improve transparency processing on flat map
This commit is contained in:
parent
19984946ac
commit
4af247593d
@ -347,12 +347,12 @@ public class FlatMap extends MapType {
|
|||||||
pixel[1] = c.getGreen();
|
pixel[1] = c.getGreen();
|
||||||
pixel[2] = c.getBlue();
|
pixel[2] = c.getBlue();
|
||||||
pixel[3] = c.getAlpha();
|
pixel[3] = c.getAlpha();
|
||||||
|
}
|
||||||
|
}
|
||||||
/* Recurse to resolve color here */
|
/* Recurse to resolve color here */
|
||||||
process_transparent(pixel, pixel_day, mapiter);
|
process_transparent(pixel, pixel_day, mapiter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
/* Blend colors from behind block and block, based on alpha */
|
/* Blend colors from behind block and block, based on alpha */
|
||||||
r *= a;
|
r *= a;
|
||||||
g *= a;
|
g *= a;
|
||||||
|
Loading…
Reference in New Issue
Block a user