code: function buildShaderProgram(gl, name, config, resources) {
    const progConfig = config.programs[name];
    const compiledVertexShader = compileShader(
      gl,
      progConfig.vertexShader,
      gl.VERTEX_SHADER
    );
    const compiledFragmentShader = compileShader(
      gl,
      progConfig.fragmentShader,
      gl.FRAGMENT_SHADER
    );
    const program = createShaderProgram(gl, [
      compiledVertexShader,
      compiledFragmentShader,
    ]);
  
    // Store the created program in the resources
    resources.programs[name] = program;
  
    // Handle mapping if any
    if (progConfig.mapping) {
      applyProgramDataMapping(gl, name, progConfig.mapping, config, resources);
    }
  
    // Return program
    return program;
  }
docs: Create a shader program