repo.or.cz
/
piglit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
glsl-4.50: move constant multiply test to glsl-4.50 dir
[piglit.git]
/
tests
/
shaders
/
glsl-fs-loop-const-incr.shader_test
blob
1cdf4ff736195e2ed83c7e0476dd2e29c9114a5c
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
void main()
6
{
7
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
8
}
9
10
[fragment shader]
11
uniform vec4 color;
12
void main()
13
{
14
int count = int(color.w);
15
vec3 c = color.xyz;
16
int i;
17
18
for (i = 0; i < 10; i++) {
19
c.x += 0.1;
20
}
21
22
gl_FragColor = vec4(c, 1.0);
23
}
24
25
[test]
26
ortho
27
clear color 0.5 0.5 0.5 0.5
28
clear
29
draw rect 10 10 10 10
30
draw rect 30 10 10 10
31
probe rgb 15 15 1.0 0.0 0.0
32
probe rgb 35 15 1.0 0.0 0.0