UNPKG

@lightningjs/renderer

Version:
30 lines 805 B
export class IShaderController { shaderRef; node = null; constructor(shaderRef) { this.shaderRef = shaderRef; } defineProps(props) { const keys = Object.keys(props); const l = keys.length; let i = 0; for (; i < l; i++) { const propName = keys[i]; Object.defineProperty(this, propName, { get: () => { return this.getProp(propName); }, set: (value) => { this.setProp(propName, value); }, enumerable: true, configurable: true, }); } } attachNode(node) { this.node = node; this.loadShader(); } } //# sourceMappingURL=IShaderController.js.map