repo.or.cz
/
piglit
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add more structure constructor tests.
[piglit/hramrach.git]
/
tests
/
shaders
/
glsl-octal.shader_test
blob
2994b0e9cf32b281d7d49b2dc66d25d8c586228b
1
[require]
2
GL >= 2.0
3
GLSL >= 1.10
4
5
[vertex shader]
6
varying vec4 color;
7
8
void main()
9
{
10
ivec4 val = ivec4(0, 01, 010, 04);
11
12
gl_Position = gl_Vertex;
13
color = vec4(val) / vec4(0.0, 2.0, 16.0, 8.0);
14
}
15
16
[fragment shader]
17
varying vec4 color;
18
void main()
19
{
20
gl_FragColor = color;
21
}
22
23
[test]
24
draw rect -1 -1 2 2
25
probe rgba 1 1 0.0 0.5 0.5 0.5