Fit interface
A texture framed in the element's box like CSS object-fit.
import type { Fit } from '@dioramajs/diorama/effects'interface FitMembers
| Name | Type | Description |
|---|---|---|
mask | | 1 where the texture covers the box, 0 in contain bands, like the media's contain mask. |
sample | | The texture at box UV under the fit, clamped at its edge. Follows |
set | | Swaps the texture (the next slide): same uniforms, no recompile. |
uv | | Box UV (y up) to the texture's UV under the fit. |
Also exported from @dioramajs/effects.
Defined in packages/effects/src/types.ts.