Skip to main content
Version: Phaser v4.0.0

Phaser.Textures.FilterMode

Scope: static

Source: src/textures/const.js#L7
Since: 3.0.0

Static functions

LINEAR

LINEAR: number

Description:

Linear (bilinear) filter type. Smooths textures by interpolating between neighbouring pixels when scaling, producing a blended, anti-aliased result. Suitable for high-resolution artwork but will appear blurry on pixel art.

Source: src/textures/const.js#L18
Since: 3.0.0


NEAREST

NEAREST: number

Description:

Nearest neighbor filter type. Samples the single closest pixel when scaling, preserving hard edges and producing a crisp, blocky result. Ideal for pixel art games where texture sharpness is important.

Source: src/textures/const.js#L29
Since: 3.0.0