opengl: switch to black-and-white for alpha mattes
also fixes shadows on 10b
This commit is contained in:
parent
11432f69b9
commit
14195835ef
4 changed files with 17 additions and 10 deletions
|
|
@ -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"#(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue