UNPKG

@openhps/core

Version:

Open Hybrid Positioning System - Core component

46 lines (43 loc) 1.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _NodeVar = _interopRequireDefault(require("./NodeVar.js")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * {@link NodeBuilder} is going to create instances of this class during the build process * of nodes. They represent the final shader varyings that are going to be generated * by the builder. An array of node varyings is maintained in {@link NodeBuilder#varyings} for * this purpose. * * @augments NodeVar */ class NodeVarying extends _NodeVar.default { /** * Constructs a new node varying. * * @param {string} name - The name of the varying. * @param {string} type - The type of the varying. */ constructor(name, type) { super(name, type); /** * Whether this varying requires interpolation or not. This property can be used * to check if the varying can be optimized for a variable. * * @type {boolean} * @default false */ this.needsInterpolation = false; /** * This flag can be used for type testing. * * @type {boolean} * @readonly * @default true */ this.isNodeVarying = true; } } var _default = exports.default = NodeVarying;