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-mod.shader_test
blob
d49a034aae3f6c8389442d4232081e9e098384f1
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 vec2 v1 = mod(vec2(-3.0, 43.5), vec2(0.9, -4.0)); /* (-0.5, 0.6) */
13
const vec2 v2 = mod(vec2(0.2, 6.0), 1.3);
14
gl_FragColor = vec4(v1.x + v1.y, v2, 1.0);
15
}
16
17
[test]
18
clear color 0.0 0.0 0.0 0.0
19
clear
20
ortho
21
draw rect 10 10 10 10
22
probe rgb 15 15 0.1 0.2 0.8