canProjectTexture()
pixi-reels / index / canProjectTexture
Function: canProjectTexture()
function canProjectTexture(texture: Texture): boolean;
Defined in: symbols/PerspectiveCell.ts:42
Whether a texture can go through the perspective mesh.
Only textures owning their whole source qualify. An atlas SUB-frame does
not: the mesh addresses its source with plain 0..1 UVs, and remapping them
onto the frame - via texture.uvs, via textureMatrix, or leaving it to
PixiJS - has not produced a correct draw here. Unmapped, the cell shows the
whole sheet; mapped by hand, a magnified crop of the right frame, which says
the mapping is applied somewhere else too. Rather than ship either, a
sub-frame falls back to the affine fit in ReelSymbol.applyCellQuad() -
correct, just not keystoned.
Generated textures, single loaded images and render textures pass. Atlas frames - the common production case - do not, yet.
Parameters#
| Parameter | Type |
|---|---|
texture | Texture |
Returns#
boolean