@openhps/core
Version:
Open Hybrid Positioning System - Core component
17 lines (16 loc) • 478 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.uv = void 0;
var _AttributeNode = require("../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.
*/
const uv = (index = 0) => (0, _AttributeNode.attribute)('uv' + (index > 0 ? index : ''), 'vec2');
exports.uv = uv;