projects
/
platform
/
upstream
/
glslang.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2913 from greg-lunarg/i2905
[platform/upstream/glslang.git]
/
Test
/
spv.flowControl.frag
1
#version 140
\r
2
\r
3
in float d;
\r
4
in vec4 bigColor, smallColor;
\r
5
in vec4 otherColor;
\r
6
\r
7
in float c;
\r
8
in vec4 BaseColor;
\r
9
\r
10
void main()
\r
11
{
\r
12
vec4 color = BaseColor;
\r
13
vec4 color2;
\r
14
\r
15
color2 = otherColor;
\r
16
\r
17
if (c > d)
\r
18
color += bigColor;
\r
19
else
\r
20
color += smallColor;
\r
21
\r
22
gl_FragColor = color * color2;
\r
23
}
\r