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-vs-dot-vec2.shader_test
blob
74e5883c1faed83014d613180f68a24e19e7d33e
1
[require]
2
GL >= 2.0
3
GLSL >= 1.10
4
5
[vertex shader]
6
uniform vec4 arg0;
7
varying vec4 v;
8
void main()
9
{
10
gl_Position = gl_Vertex;
11
v = vec4(dot(arg0.yy, arg0.yy),
12
dot(arg0.xx, arg0.zw),
13
dot(arg0.zw, arg0.xx),
14
dot(arg0.yw, arg0.wy));
15
}
16
17
[fragment shader]
18
varying vec4 v;
19
void main()
20
{
21
gl_FragColor = v;
22
}
23
24
[test]
25
uniform vec4 arg0 0.25 0.5 1.0 2.0
26
draw rect -1 -1 2 2
27
probe all rgba 0.5 0.75 0.75 1.0