scg3  0.6
simple_gouraud_frag.glsl
Go to the documentation of this file.
1 /**
2  * \file simple_gouraud_frag.glsl
3  * \brief Minimal lighting fragment shader, using Gouraud shading.
4  */
5 
6 #version 150
7 
8 smooth in vec4 color;
9 
10 out vec4 fragColor;
11 
12 
13 // --- implementations ---
14 
15 
16 void main(void) {
17 
18  // set final fragment color
19  fragColor = clamp(color, 0., 1.);
20 }