matiasah / shadows

Shädows - A Shadows & Lights engine for löve
MIT License
169 stars 9 forks source link

Support Love 0.11 #24

Closed Skeletonxf closed 6 years ago

Skeletonxf commented 6 years ago

This commit changes

love.graphics.setBlendMode("alpha", "alphamultiply")

to

love.graphics.setBlendMode("alpha", "premultiplied")

as love 0.11 produces the error: ''Error: shadows/LightWorld.lua:126: The 'multiply' blend mode must be used with premultiplied alpha. stack traceback:

[C]: in function 'setBlendMode'"

Love 0.11 also deprecated

Body:getFixtureList()

in favor of

Body:getFixtures()
matiasah commented 6 years ago

Wow, I didn't notice love2d 0.11 was out. Anyway, do you want to be officially a collaborator on this repository? I can give you access to modification of the code.

Skeletonxf commented 6 years ago

It came out on April 1st.

I still don't really understand most of the actual shading logic so I'd prefer having commits reviewed so I don't break anything by accident :P