# Load our shader program

## Read shader files

We are going to use Shader::read\_source to read our vertex and fragment shader program in main()

```cpp
    // Initialize shader with VSCode
    shader.read_source( "../shaders/colour.vert", "../shaders/colour.frag");
    // use the following if you are using Visual Studio
    // shader.read_source( "shaders/colour.vert", "shaders/colour.frag");
    shader.compile();
    glUseProgram(shader.program);
```

Note: from LabA03, with the updated CMakeLists.txt, we will have uniform access of the shader files for both VSCode and Visuali Studio :

```cpp
shader.read_source( "shaders/colour.vert", "shaders/colour.frag");
```

## Finally, we get

<figure><img src="https://3464970502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3JUKGJZ67JX02QZdPhsy%2Fuploads%2FktIlCYAPceKtykWXl3co%2Fimage.png?alt=media&#x26;token=cd75dcca-eb8f-4fbe-8e6c-d409f4755eda" alt=""><figcaption></figcaption></figure>
