repo.or.cz
/
glslang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ci: Remove gcc from macos matrix
[glslang.git]
/
Test
/
flowControl.frag
blob
eaa6fb1da446f4636fce0af9a625982512b6fef9
1
#version 120
\r
2
\r
3
uniform float d;
\r
4
uniform vec4 bigColor, smallColor;
\r
5
uniform vec4 otherColor;
\r
6
\r
7
varying float c;
\r
8
varying 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