ebiten: bug fix: wrong BlendDestinationOut behaviour (#2561)

Closes #2560
This commit is contained in:
Artem Sedykh 2023-02-05 21:28:58 +03:00 committed by GitHub
parent 085a4f6914
commit 1277909998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -314,10 +314,10 @@ var (
// c_out = c_dst × (1 - α_src)
// α_out = α_dst × (1 - α_src)
BlendDestinationOut = Blend{
BlendFactorSourceRGB: BlendFactorOneMinusDestinationAlpha,
BlendFactorSourceAlpha: BlendFactorOneMinusDestinationAlpha,
BlendFactorDestinationRGB: BlendFactorZero,
BlendFactorDestinationAlpha: BlendFactorZero,
BlendFactorSourceRGB: BlendFactorZero,
BlendFactorSourceAlpha: BlendFactorZero,
BlendFactorDestinationRGB: BlendFactorOneMinusSourceAlpha,
BlendFactorDestinationAlpha: BlendFactorOneMinusSourceAlpha,
BlendOperationRGB: BlendOperationAdd,
BlendOperationAlpha: BlendOperationAdd,
}