|
@@ -218,7 +218,7 @@ uniform vec3 Material[6];
|
|
|
vec4 Blend(vec4 texMixed, vec4 texColor) {
|
|
vec4 Blend(vec4 texMixed, vec4 texColor) {
|
|
|
texMixed.rgb *= texMixed.a;
|
|
texMixed.rgb *= texMixed.a;
|
|
|
texColor.rgb *= texColor.a;
|
|
texColor.rgb *= texColor.a;
|
|
|
- texMixed = texColor + texMixed * (1 - texColor.a);
|
|
|
|
|
|
|
+ texMixed = texColor + texMixed * (1.0 - texColor.a);
|
|
|
if (texMixed.a > 0.0) {
|
|
if (texMixed.a > 0.0) {
|
|
|
texMixed.rgb /= texMixed.a;
|
|
texMixed.rgb /= texMixed.a;
|
|
|
}
|
|
}
|