UFO: Alien Invasion
Doxygen documentation generating
combine2_fs.glsl
Go to the documentation of this file.
1 /**
2  * @file
3  * @brief combine2 fragment shader.
4  */
5 
6 #ifndef glsl110
7  /** After glsl1110 this need to be explicitly declared; used by fixed functionality at the end of the OpenGL pipeline.*/
8  out vec4 gl_FragColor;
9 #endif
10 
11 uniform sampler2D SAMPLER0;
12 uniform sampler2D SAMPLER1;
13 uniform vec4 DEFAULTCOLOR;
14 
15 void main(void) {
16  vec4 color1 = texture2D(SAMPLER0, gl_TexCoord[0].st);
17  vec4 color2 = texture2D(SAMPLER1, gl_TexCoord[0].st);
18  gl_FragColor = color1 + color2 + DEFAULTCOLOR;
19 }