text: function loadShader(gl, shadertype, source) {
          const shader = gl.createShader(shadertype);
          gl.shaderSource(shader, source);
          gl.compileShader(shader);
  
          if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
              alert("Failed while compiling " + gl.getShaderInfoLog(shader));
              gl.deleteShader(shader);
              return null;
          }
          return shader;
  }
  
  function initShaderProgram(gl, vsSource, fsSource) {
  
      const vertexShader = loadShader(gl, gl.VERTEX_SHADER, vsSource);
      const fragmentShader = loadShader(gl, gl.FRAGMENT_SHADER, fsSource);
  
      // Create the shader program
  
      const shaderProgram = gl.createProgram();
      gl.attachShader(shaderProgram, vertexShader);
      gl.attachShader(shaderProgram, fragmentShader);
      gl.linkProgram(shaderProgram);
  
      // If creating the shader program failed, alert
  
      if (!gl.getProgramParameter(shaderProgram, gl.LINK_STATUS)) {
          alert('Unable to initialize the shader program: ' + gl.getProgramInfoLog(shaderProgram));
          return null;
      }
      console.log("SOMEHOW, SHADERS COMPILED?!?!")
  
      return shaderProgram;
  }
  