UNPKG

@openhps/core

Version:

Open Hybrid Positioning System - Core component

11 lines (10 loc) 344 B
import { attribute } from '../core/AttributeNode.js'; /** * TSL function for creating an uv attribute node with the given index. * * @tsl * @function * @param {number} [index=0] - The uv index. * @return {AttributeNode<vec2>} The uv attribute node. */ export const uv = (index = 0) => attribute('uv' + (index > 0 ? index : ''), 'vec2');