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-lt.shader_test
blob
2a8b94b5d3d9025fadf0d15a7c2448030c6df85a
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
void main()
12
{
13
float sum;
14
vec3 c = vec3(0.0);
15
for(sum = 0.0; sum < 4.5; sum += 1.0){
16
c.x += 0.1;
17
}
18
for(sum = 0.0; sum < 5.0; sum += 1.0){
19
c.y += 0.1;
20
}
21
for(sum = 0.0; sum < 5.5; sum += 1.0){
22
c.z += 0.1;
23
}
24
gl_FragColor = vec4(c, 1.0);
25
}
26
27
[test]
28
draw rect -1 -1 2 2
29
probe rgb 1 1 0.5 0.5 0.6