repo.or.cz
/
piglit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
execution
/
glsl-vs-mat-div-2.shader_test
blob
2ed598e10e5547c21e5ee2c40beb6eb8ddd1ce9e
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
uniform vec3 arg0;
6
varying mat3 mat;
7
8
void main()
9
{
10
gl_Position = gl_Vertex;
11
12
mat3 m1 = mat3(0.0, arg0.x, 0.0,
13
arg0.y, 0.0, arg0.x,
14
0.0, 0.0, arg0.z);
15
16
mat = m1 / 2.0;
17
}
18
19
[fragment shader]
20
uniform vec3 arg1;
21
varying mat3 mat;
22
23
void main()
24
{
25
gl_FragColor = vec4(mat * arg1.xyz, 0.0);
26
}
27
28
[test]
29
uniform vec3 arg0 1.0 1.0 1.0
30
uniform vec3 arg1 1.6 0.4 1.0
31
draw rect -1 -1 2 2
32
probe rgba 1 1 0.2 0.8 0.7 0.0