Saxum/data/shader/flame.fsh
2015-03-08 11:25:10 +01:00

18 lines
214 B
GLSL

#version 150
in vec3 fColor;
out vec4 oColor;
uniform bool withColor;
void main() {
if (withColor) {
oColor = vec4(fColor, 0.6);
}
else {
oColor = vec4(0.0, 0.0, 0.0, 0.0);
}
}