Phaser API Documentation

  Version: 
setFilter(filterMode)

Description:

Sets the Filter Mode for this Texture.

The mode can be either Linear, the default, or Nearest.

For pixel-art you should use Nearest.

Parameters:

name type description
filterMode Phaser.Textures.FilterMode

The Filter Mode.

Since: 3.0.0