Skip to content

@modoki/engine / index / GridOptions

Interface: GridOptions ​

Skinning ​

cols ​

cols: number


height ​

height: number


isInside? ​

optional isInside?: (u, v) => boolean

Optional coverage test in UV space (0..1). A cell is kept only if it has any covered sample; a vertex is emitted only if it borders a kept cell. Omit to keep the full rectangle. Used to cull fully-transparent regions from the grid.

Parameters ​

u ​

number

v ​

number

Returns ​

boolean


pivotX? ​

optional pivotX?: number


pivotY? ​

optional pivotY?: number


rows ​

rows: number


width ​

width: number

Built with Modoki.