psh: Use float for alpha, vec3 for rgb

This commit is contained in:
Jannik Vogel 2019-02-11 23:18:57 +01:00 committed by mborgerson
parent f21c2d7ddb
commit d225ff7a98
1 changed files with 5 additions and 1 deletions

View File

@ -307,7 +307,11 @@ static QString* get_input_var(struct PixelShader *ps, struct InputInfo in, bool
}
break;
case PS_CHANNEL_ALPHA:
qstring_append(reg, ".a");
if (is_alpha) {
qstring_append(reg, ".a");
} else {
qstring_append(reg, ".aaa");
}
break;
default:
assert(false);