code: function(src, type) {
          var gl = this.context;
          var shader = gl.createShader(type);
          gl.shaderSource(shader, src);
          gl.compileShader(shader);
          if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
              throw gl.getShaderInfoLog(shader);
          }
          return shader;
      }
docs: Create a vertex or fragment shader, given the source and type