~ubuntu-branches/ubuntu/oneiric/mesa-demos/oneiric

« back to all changes in this revision

Viewing changes to src/fpglsl/for.glsl

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2010-09-27 16:18:27 UTC
  • Revision ID: james.westby@ubuntu.com-20100927161827-1yfgolc1oy9sjhi8
Tags: upstream-8.0.1
ImportĀ upstreamĀ versionĀ 8.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
uniform int KernelSizeInt;
 
2
 
 
3
void main() {
 
4
    int i;
 
5
    vec4 sum = vec4(0.0);
 
6
    for (i = 0; i < KernelSizeInt; ++i) {
 
7
        sum.g += 0.25;
 
8
    }
 
9
    sum.a = 1.0;
 
10
    gl_FragColor = sum;
 
11
}