"Field of vision" effect

Hi guys

I want to implement an effective “field of vision” in my sea warfare game. What I want to achieve is what is shown in this example: http://labs.phaser.io/edit.html?src=src\display\masks\spotlight.js

But, what kind of image is the mask? I mean, in the example an image is loaded to use as the mask, but what is it? a full black image with a “hole” in the middle? I can’t seem to fully understand this concept…

Hey @Tico1711

this is the mask from that example.
You could also clone the phaser-examples3 github repo and see for yourself :slight_smile:

It’s an alpha mask; the mask image’s opacity sets the alpha of each pixel of the masked target.