Skip to content
Starkkz edited this page Jul 10, 2016 · 32 revisions

Introduction

This is my dynamic shadows & lights library for löve, it uses the MIT license so you can use it for almost any project.

Features

  • 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 (just other lights)
  • Rooms (dark sectors which stars cannot cover)

Quick Setup & Example

local Shadows = require("shadows")
local LightWorld = Shadows.CreateWorld(5000, 5000) -- 5000x5000 light world size

function love.draw()
	LightWorld:draw(0, 0)
end

function love.update()
	LightWorld:update()
end

Classes

Clone this wiki locally