UFO: Alien Invasion
Loading...
Searching...
No Matches
simple_glow_fs.glsl
Go to the documentation of this file.
1/**
2 * @file
3 * @brief This is the glow shader that is applied if no other shader is
4 * active but the glow map should get rendered.
5 */
6
7#if r_postprocess
8 /*
9 * Indicates that gl_FragData is written to, not gl_FragColor.
10 * #extension needs to be placed before all non preprocessor code.
11 */
12 #extension GL_ARB_draw_buffers : enable
13#endif
14
15/** Diffuse. */
16uniform sampler2D SAMPLER_DIFFUSE;
17
18#include "write_fragment_fs.glsl"
19
20void main(void) {
21 vec4 diffuse_tex = texture2D(SAMPLER_DIFFUSE, gl_TexCoord[0].st);
22
23 /* glowmap will be added automatically */
24 writeFragment(diffuse_tex);
25}