N E W
TSL function for computing texture coordinates for animated sprite sheets.
const uvNode = spritesheetUV( vec2( 6, 6 ), uv(), time.mul( animationSpeed ) );
material.colorNode = texture( spriteSheet, uvNode );
export {}| Parameter | Type | Default Value |
|---|---|---|
| countNode | Node<vec2> | — |
| uvNode? | Node<vec2> | — |
| frameNode? | Node<float> | — |
Returns
Node<vec2>