Browse Source

Fix multiply blend mode (#1126)

Casey Clyde 2 years ago
parent
commit
eb4098a9a0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h3d/mat/Pass.hx

+ 1 - 1
h3d/mat/Pass.hx

@@ -113,7 +113,7 @@ class Pass {
 			blend(OneMinusDstColor, One);
 			blendAlphaSrc = One;
 		case Multiply: // Out = Dst * Src + 0 * Dst
-			blend(DstColor, One);
+			blend(DstColor, Zero);
 			blendAlphaSrc = One;
 		case AlphaMultiply: // Out = Dst * Src + (1 - SrcA) * Dst
 			blend(DstColor, OneMinusSrcAlpha);