text: (function(global) {
    class SceneSwitcherNode extends NIN.Node {
      constructor(id) {
        super(id, {
          inputs: {
            A: new NIN.TextureInput(),
            B: new NIN.TextureInput(),
          },
          outputs: {
            render: new NIN.TextureOutput(),
          }
        });
      }
  
      beforeUpdate() {
        this.inputs.A.enabled = false;
        this.inputs.B.enabled = false;
  
        let selectedScene;
        if (BEAN < 48 * 4) {
          selectedScene = this.inputs.A;
        } else {
          selectedScene = this.inputs.B;
        }
  
        selectedScene.enabled = true;
        this.selectedScene = selectedScene;
      }
  
      render() {
        this.outputs.render.setValue(this.selectedScene.getValue());
      }
    }
  
    global.SceneSwitcherNode = SceneSwitcherNode;
  })(this);
  