pixi-reels

MotionBlurOptions

pixi-reels


pixi-reels / index / MotionBlurOptions

Interface: MotionBlurOptions

Defined in: snapshot/SpinTextureCache.ts:19

Tuning for the baked motion-blur variant of a snapshot.

Properties

PropertyTypeDescriptionDefined in
axis?"x" | "y"Smear axis — the reel’s travel direction. 'y' (default) for normal vertical reels; 'x' for a HorizontalReel strip. The other axis is never blurred.snapshot/SpinTextureCache.ts:25
padding?numberExtra transparent pixels added on both sides of the cell along the axis so the smear isn’t clipped at the texture edge. Default: ceil(strength).snapshot/SpinTextureCache.ts:39
quality?numberBlurFilter quality (number of passes). Default: 4.snapshot/SpinTextureCache.ts:33
strength?numberBlur strength in pixels along the axis. Default: 20% of the cell’s span on that axis (cellHeight * 0.2 for 'y', cellWidth * 0.2 for 'x').snapshot/SpinTextureCache.ts:31