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-mix.shader_test
blob
70466f831ffa8df1efe53fd6aaf862b9a5cad9e4
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 vec4 v1 = vec4(1.0, 0.0, 2.0, 0.0);
13
const vec4 v2 = vec4(0.0, 1.0, 0.0, 2.0);
14
const vec4 v3 = vec4(0.5, 0.5, 0.75, 0.25);
15
const vec4 vm = mix(v1, v2, v3);
16
gl_FragColor = vm;
17
}
18
19
[test]
20
clear color 0.0 0.0 0.0 0.0
21
clear
22
ortho
23
draw rect 10 10 10 10
24
probe rgb 15 15 0.5 0.5 0.5