Theme Catppuccin
Make yourself at homeCatppuccin

A softer light for long learning sessions.

Appearance

Loading your preference…

Dark palette

Choose a dark palette to try it.

Light uses Latte. Your choices stay in this browser.

Back to your source shelf

Inside the companion

The Shader Workshop

Open a native OpenGL window, draw a triangle, then move a camera around three exhibits.

Project files 8

Paint the interpolated color

The starter fragment stage writes the color received from the vertex stage.

8 lines observatory.frag
#version 330 core
in vec3 v_color;
out vec4 out_color;
void main() {
    // A first artistic palette, before the later explicit linear/sRGB workflow.
    out_color = vec4(v_color, 1.0);
}

This is the file included with the course. Copy and download give you its complete source.

Taking your work offline? Download all course companions