lordmauve / wasabi2d

Cutting-edge 2D game framework for Python
https://wasabi2d.readthedocs.io/
GNU Lesser General Public License v3.0
154 stars 24 forks source link

Multiplicative blending as a chain effect #47

Open lordmauve opened 4 years ago

lordmauve commented 4 years ago

It should be possible to write

scene.chain = chain.Multiply(
    chain.LayerRange(stop=0),
    chain.Layer(1)
)

in order to composite the scene with layer 1 multiplying all lower layers. This would allow for lighting effects.