mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
graphics: Add CompositeModeDestinationOver
This commit is contained in:
parent
5f6f2531a9
commit
ee142a751c
@ -57,6 +57,9 @@ const (
|
|||||||
// c_out = c_dst
|
// c_out = c_dst
|
||||||
CompositeModeDestination = CompositeMode(opengl.CompositeModeDestination)
|
CompositeModeDestination = CompositeMode(opengl.CompositeModeDestination)
|
||||||
|
|
||||||
|
// c_out = c_src × (1 - α_dst) + c_dst
|
||||||
|
CompositeModeDestinationOver = CompositeMode(opengl.CompositeModeDestinationOver)
|
||||||
|
|
||||||
// c_out = c_src × α_dst
|
// c_out = c_src × α_dst
|
||||||
CompositeModeSourceIn = CompositeMode(opengl.CompositeModeSourceIn)
|
CompositeModeSourceIn = CompositeMode(opengl.CompositeModeSourceIn)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user