Right now, when a Fog Image comes in, it's a black (fog) and white (revealed) map. We then iterate all the data to flip all white areas to be fully transparent.
We should look into updating the Server to send over the transparency (and set it up front).
Right now, when a Fog Image comes in, it's a black (fog) and white (revealed) map. We then iterate all the data to flip all white areas to be fully transparent.
We should look into updating the Server to send over the transparency (and set it up front).
If that isn't possible, then maybe look into how the Web Client can use the Fog coming in as a mask, where the 'white' ends up being the revealed area. See http://christianheilmann.com/2013/06/15/image-masking-with-html5-canvas/ for masking.