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.
#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
