repo.or.cz
/
mesa
/
mesa-lb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
gallium: add target-helpers/wrap_screen.c to C_SOURCES
[mesa/mesa-lb.git]
/
progs
/
vpglsl
/
nestedifs.glsl
blob
abb235cd65bdaef49f3db7ad9ec37e861462e38e
1
2
void main() {
3
gl_Position = gl_Vertex;
4
if (gl_Position.x < 0.5) {
5
if (gl_Position.y < 0.20) {
6
gl_FrontColor = vec4(1.0, 0.0, 0.0, 1.0);
7
} else {
8
gl_FrontColor = vec4(0.0, 1.0, 0.0, 1.0);
9
}
10
gl_FrontColor.y = 1.0;
11
} else
12
gl_FrontColor = gl_Color;
13
}