]> git.tdb.fi Git - libs/gl.git/blob - demos/desertpillars/data/flare.glsl
Add a moving point light to the night phase of desertpillars
[libs/gl.git] / demos / desertpillars / data / flare.glsl
1 import billboard;
2
3 uniform Flare
4 {
5         int flare_light_index;
6 };
7
8 #pragma MSP stage(fragment)
9 vec4 get_color() override
10 {
11         return texture(color_tex, texcoord.xy)*vec4(light_sources[flare_light_index].color, 1.0);
12 }