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) // 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,
} }