Phaser shadow samples?

Not sure what “samples” means in terms of the shadow FX effect in Phaser 3.

samples : The number of samples that the shadow effect will run for. An integer between 1 and 12.

The effect samples (reads) the source texture and makes a dark fill in a similar shape. The overlapping fills make the shadow. More samples give it a soft gradient that looks better but also takes longer.

2 Likes