2015-02-24 22:30:59 +00:00
|
|
|
#version 150
|
|
|
|
|
2015-03-01 17:45:31 +00:00
|
|
|
in vec3 fColor;
|
|
|
|
|
2015-02-24 22:30:59 +00:00
|
|
|
out vec4 oColor;
|
|
|
|
|
2015-03-04 11:13:58 +00:00
|
|
|
uniform bool withColor;
|
|
|
|
|
2015-03-01 17:45:31 +00:00
|
|
|
|
2015-02-24 22:30:59 +00:00
|
|
|
void main() {
|
2015-03-04 11:13:58 +00:00
|
|
|
if (withColor) {
|
2015-03-06 08:16:29 +00:00
|
|
|
oColor = vec4(fColor, 1.0);
|
2015-03-04 11:13:58 +00:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
oColor = vec4(0.0, 0.0, 0.0, 0.0);
|
|
|
|
}
|
2015-02-24 22:30:59 +00:00
|
|
|
}
|