mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
ebiten: bug fix: wrong BlendDestinationOut behaviour (#2561)
Closes #2560
This commit is contained in:
parent
085a4f6914
commit
1277909998
8
blend.go
8
blend.go
@ -314,10 +314,10 @@ var (
|
|||||||
// c_out = c_dst × (1 - α_src)
|
// c_out = c_dst × (1 - α_src)
|
||||||
// α_out = α_dst × (1 - α_src)
|
// α_out = α_dst × (1 - α_src)
|
||||||
BlendDestinationOut = Blend{
|
BlendDestinationOut = Blend{
|
||||||
BlendFactorSourceRGB: BlendFactorOneMinusDestinationAlpha,
|
BlendFactorSourceRGB: BlendFactorZero,
|
||||||
BlendFactorSourceAlpha: BlendFactorOneMinusDestinationAlpha,
|
BlendFactorSourceAlpha: BlendFactorZero,
|
||||||
BlendFactorDestinationRGB: BlendFactorZero,
|
BlendFactorDestinationRGB: BlendFactorOneMinusSourceAlpha,
|
||||||
BlendFactorDestinationAlpha: BlendFactorZero,
|
BlendFactorDestinationAlpha: BlendFactorOneMinusSourceAlpha,
|
||||||
BlendOperationRGB: BlendOperationAdd,
|
BlendOperationRGB: BlendOperationAdd,
|
||||||
BlendOperationAlpha: BlendOperationAdd,
|
BlendOperationAlpha: BlendOperationAdd,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user