fiddling around, trying to get the additive to work

This commit is contained in:
2020-02-22 02:10:30 -08:00
parent 5dde94cdf9
commit 1419f85455
3 changed files with 36 additions and 34 deletions

View File

@@ -8,13 +8,15 @@ layout(location = 0) in vec4 out_color;
layout(location = 0) out vec4 f_color;
void main() {
if (int(out_color.w) % 2 == 0) {
if (out_color.w >= 1.004) {
f_color = out_color;
f_color.w = 255.0;
//f_color.w = 1.0;
} else {
f_color = f_color;
f_color.w = 0.0;
}
//f_color = out_color;
}