Skip to content

Commit 4e08ac7

Browse files
committed
Undo blend options of multiply mode
What is means, nothing is understandable
1 parent 28c33e5 commit 4e08ac7

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

src/framework.rs

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -799,14 +799,27 @@ impl Drawable {
799799
Composition {
800800
mult: *drawable.multiply_color,
801801
screen: [0.0, 0.0, 0.0, 1.0],
802+
// I still don't know what the issue is with the blending
803+
// I take from the original framework :(
804+
//blend: Blend {
805+
// color: BlendingFunction::Addition {
806+
// source: F::DestinationColor,
807+
// destination: F::OneMinusSourceAlpha,
808+
// },
809+
// alpha: BlendingFunction::Addition {
810+
// source: F::Zero,
811+
// destination: F::One,
812+
// },
813+
// .. Default::default()
814+
//}
802815
blend: Blend {
803816
color: BlendingFunction::Addition {
804-
source: F::DestinationColor,
817+
source: F::SourceAlpha,
805818
destination: F::OneMinusSourceAlpha,
806819
},
807820
alpha: BlendingFunction::Addition {
808-
source: F::Zero,
809-
destination: F::One,
821+
source: F::One,
822+
destination: F::OneMinusSourceAlpha,
810823
},
811824
.. Default::default()
812825
}

0 commit comments

Comments
 (0)