SpriteInstanceUniform

View source

CPU-side payload for a single sprite-instance uniform block.

Constructor


Properties


staticreadonly BlockSize : number

View source

Raw std140 payload size for one sprite-instance block.

The final four bytes are followed by the std140 padding required to keep the block size aligned to a four-component vector.

Default: ...

transform : Affine3

View source

Current world transform for the instance.

tint : Color

View source

Color multiplied with the sampled image.

alphaCutoff : number

View source

Alpha cutoff used by the alpha-mask shader variant.

Methods


getData ( data: DataView<ArrayBufferLike> ) : void

View source

Packs the current state into the supplied block slice.

Parameters

Name Description Default
data — —