- uniform sampler2D input_tex;
- uniform sampler2D glowmap;
- uniform vec2 glowformat;
- varying vec4 vpos;
- void main(void)
- {
- // ...
- int xwidth = int(glowformat[0]);
- int ywidth = int(glowformat[1]);
- // ...
- for (int x=0;x<=xwidth;x++)
- {
- for (int y=0;y<=ywidth;y++)
- {
- // ...
- }
- }
- // ...
- }