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