projects
/
mesa.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
r600: fix copy/paste typo
[mesa.git]
/
progs
/
vpglsl
/
varfor4f.glsl
1
const int KernelSize = 4;
2
uniform vec4 KernelValue4f[KernelSize];
3
4
void main(void)
5
{
6
int i;
7
vec4 sum = vec4(0.0);
8
vec4 tmp = gl_Color;
9
gl_Position = gl_Vertex;
10
11
for (i = 0; i < KernelSize; ++i) {
12
vec4 rgba;
13
14
rgba = KernelValue4f[i];
15
16
sum += tmp * rgba;
17
}
18
gl_FrontColor = sum;
19
}