pixi-jsInterfaces
Interface: CacheAsTextureOptions
Defined in: node_modules/pixi.js/lib/scene/container/RenderGroup.d.ts:16
Options for caching a container as a texture.
Advanced
Properties
antialias?
> optional antialias?: boolean
Defined in: node_modules/pixi.js/lib/scene/container/RenderGroup.d.ts:21
If true, the texture will be antialiased. This smooths out the edges of the texture.
Default
false
resolution?
> optional resolution?: number
Defined in: node_modules/pixi.js/lib/scene/container/RenderGroup.d.ts:26
The resolution of the texture. A higher resolution means a sharper texture but uses more memory. By default the resolution is 1 which is the same as the rendererers resolution.
scaleMode?
> optional scaleMode?: SCALE_MODE
Defined in: node_modules/pixi.js/lib/scene/container/RenderGroup.d.ts:38
Scale Mode to use for the cached texture
Default
'linear'
Example
const container = new Container();
container.cacheAsTexture({ scaleMode: 'nearest' });