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-mat-add-1.shader_test
blob
f2d7343076e475e741adfb5ab48c52a847c0ac90
1
[require]
2
GL >= 2.0
3
GLSL >= 1.10
4
5
[vertex shader]
6
uniform vec4 arg0;
7
varying mat3 mat;
8
9
void main()
10
{
11
gl_Position = gl_Vertex;
12
13
mat3 m1 = mat3(-arg0.x, arg0.y, 0.0,
14
arg0.z, -arg0.x, 0.0,
15
0.0, 0.0, arg0.w);
16
mat3 m2 = mat3(arg0.x);
17
18
mat = m1 + m2;
19
}
20
21
[fragment shader]
22
uniform vec3 arg1;
23
varying mat3 mat;
24
25
void main()
26
{
27
gl_FragColor = vec4(mat * arg1.xyz, 0.0);
28
}
29
30
[test]
31
uniform vec4 arg0 2.0 1.0 -1.0 1.0
32
uniform vec3 arg1 1.0 0.0 0.3
33
draw rect -1 -1 2 2
34
probe rgba 1 1 0.0 1.0 0.9 0.0