Interface: CreateImageSpriteOptions
Defined in: rendering/utilities/create-image-sprite.ts:47
Properties
emissiveMap?
optionalemissiveMap?:EmissiveMapOptions
Defined in: rendering/utilities/create-image-sprite.ts:57
The emissive map to add on top of the sprite's tinted albedo, unaffected by lighting. Omit for a sprite with no emissive contribution.
frameDimensions?
optionalframeDimensions?:Vector2
Defined in: rendering/utilities/create-image-sprite.ts:51
The dimensions of a single frame in the image, for sprite sheets. Defaults to the full image size (i.e. a single-frame sprite).
pixelated?
optionalpixelated?:boolean
Defined in: rendering/utilities/create-image-sprite.ts:66
Samples the sprite's texture (and its emissive map, if any) with nearest-
neighbor filtering for crisp, blocky scaling, appropriate for pixel-art
assets. Defaults to false, which uses linear filtering so the sprite's
own anti-aliased edges (for example a soft-edged circle) are preserved
instead of being sampled into a hard, staggered stair-step.
slices?
optionalslices?:NineSliceOptions
Defined in: rendering/utilities/create-image-sprite.ts:73
Nine-slice configuration, for a sprite whose corners should stay a fixed size while its edges/center stretch or tile. Omit for a normal, single-quad sprite.