-
Notifications
You must be signed in to change notification settings - Fork 9
Home
Matías Hermosilla edited this page May 25, 2017
·
32 revisions
This is my dynamic shadows & lights library for löve, it uses the MIT license so you can use it for almost any project.
- Using canvases to optimize the drawing process
- Using bloor/bloom/aberration shaders
- Top view 3D shadows (the casted shadow is generated according to the altitude of the light and the body)
- Polygon & Circle shapes
- Stars (lights unable to cover rooms)
- Rooms (dark sectors which stars cannot cover)
Just drag the "shadows" folder inside your project folder (notice that the root of this repository is the shadows folder).
local Shadows = require("shadows")
local LightWorld = require("shadows.LightWorld")
local newLightWorld = LightWorld:new()
function love.draw()
newLightWorld:draw(0, 0)
end
function love.update()
newLightWorld:update()
end