- fixed: Even though the name REDISALPHA implies otherwise, this render mode still needs to respect a texture's alpha channel to ensure that things get rendered properly. Otherwise the SmoothEdges function cannot be used which is necessary to ensure that filtered textures look correct.

This commit is contained in:
Christoph Oelckers 2014-10-26 21:17:29 +01:00
parent 3e50db9bf0
commit 5638aab63c

View file

@ -73,7 +73,7 @@ vec4 getTexel(vec2 st)
break;
case 4: // TM_REDTOALPHA
texel = vec4(1.0, 1.0, 1.0, texel.r);
texel = vec4(1.0, 1.0, 1.0, texel.r*texel.a);
break;
case 5: // TM_CLAMPY