@lightningjs/renderer
Version:
Lightning 3 Renderer
19 lines • 501 B
JavaScript
export class IShaderNode {
shaderType;
props;
propsList = [];
node = null;
stage = null;
constructor(shaderType, props) {
this.shaderType = shaderType;
this.props = props;
const keys = Object.keys(props);
this.propsList = keys.filter((prop) => prop.charAt(0) !== '$');
}
//called by node when node is initialized
connectNode(node) {
this.node = node;
this.loadShader();
}
}
//# sourceMappingURL=IShaderNode.js.map