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-const-builtin-exp2.shader_test
blob
4709181b746a739b3901ee809a7f24ef16703660
1
[require]
2
GL >= 2.0
3
GLSL >= 1.20
4
5
[vertex shader file]
6
glsl-mvp.vert
7
8
[fragment shader]
9
#version 120
10
void main()
11
{
12
const float one_half = exp2(16.0) - 65535.5;
13
gl_FragColor = vec4(0.0, one_half, 0.0, 1.0);
14
}
15
16
[test]
17
clear color 0.0 0.0 0.0 0.0
18
clear
19
ortho
20
draw rect 10 10 10 10
21
probe rgb 15 15 0.0 0.5 0.0