Vertex Shader Challenge

A shader program is made of two sub-functions: a vertex and a fragment shader.

Both the vertex and fragment shader are written using OpenGL Shading Language (GLSL) and require a function called main in order to work:

void main() {


Let's start easy—replicate the above main function below:

Cheat Sheet Preview

Download The Official Chris Courses HTML5 Canvas Cheat Sheet

Essential canvas syntax at your fingertips.

Download Now

Providing the lift to launch your development career

© 2021 Chris Courses. All rights reserved.