Skip to content

TextureOptions

Defined in: renderer/src/assets.ts:42

Options for texture.

optional scaleMode?: "nearest" | "linear"

Defined in: renderer/src/assets.ts:52

How the GPU samples this texture when it is drawn at a size other than its own: "nearest" keeps pixel-art edges hard, "linear" smooths them. Omit to leave Pixi’s default ("linear", or whatever pixelArtPreset set globally).

The setting lands on the loaded image, so every sprite drawing from it samples the same way.