SurfaceInput interface
Input of a colour transform.
import type { SurfaceInput } from '@dioramajs/diorama/effects'The final alpha is then multiplied by u.opacity and the clip mask.
interface SurfaceInputMembers
| Name | Type | Description |
|---|---|---|
readonly box | Node<'vec2'> | Box UV before transforms. |
readonly radius | Node<'float'> | border-radius mask at box UV. |
readonly uv | Node<'vec2'> | Box UV after all |
sample | | The element's media at box UV with crop, contain and radius masks applied; |
Also exported from @dioramajs/effects.
Defined in packages/effects/src/types.ts.