TextureOptions
Defined in: renderer/src/assets.ts:42
Options for texture.
Properties
Section titled “Properties”scaleMode?
Section titled “scaleMode?”
optionalscaleMode?:"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.