opengl: switch to black-and-white for alpha mattes

also fixes shadows on 10b
This commit is contained in:
Vaxry 2023-11-09 22:11:42 +00:00
parent 11432f69b9
commit 14195835ef
4 changed files with 17 additions and 10 deletions

View file

@ -137,7 +137,7 @@ uniform sampler2D tex;
uniform sampler2D texMatte;
void main() {
gl_FragColor = texture2D(tex, v_texcoord) * (1.0 - texture2D(texMatte, v_texcoord)[3]);
gl_FragColor = texture2D(tex, v_texcoord) * texture2D(texMatte, v_texcoord)[0]; // I know it only uses R, but matte should be black/white anyways.
})#";
inline const std::string TEXFRAGSRCRGBX = R"#(