shaders - JayDee-github/LearnOpenGL GitHub Wiki

Vertex and Fragment Shaders

This implementation applies basic vertex and fragment shader concepts.

A multi-color-star shape is rendered to the screen.

Star

The code follows examples outlined outlined in:

Changes over example code

  • Added four arrow shapes of different colors.

Running the implementation

  • Navigate the Solution Explorer to path:

    Solution -> 01.getting_started -> 01-05.vertex_and_fragment_shaders

  • Left-click the project name and select Set as Startup Project from the pop-up window.

  • Press F5 to run the project.

Interfacing with the implementation

Exiting

Press the ESC key to exit the implementation.