Skip to content

Experimenting with casting shadows from 2D objects using cyclic polygons in Javascript

Notifications You must be signed in to change notification settings

robhshu/loEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loEngine

A simple Javascript experiment with casting 2D shadows from cyclic polygon shapes (polygons with vertices which can be inscribed in a circle).

A cyclic polygon is a polygon with vertices upon which a circle can be circumscribed -- MathWorld

Why?

This is personal project of mine, extended from the curiosity of creating lighting effects in Flash and the soft-shadows I've been built in GameMaker.

Current State

Screenshot

Screenshot

Screenshot

  • Hard-edged shadows are implemented for n-sided polygons and circles
  • Soft-edged shadows are only an extended goal (the current attempt was premature)
  • Multiple lights look horrible, but they all cast shadows

About

Experimenting with casting shadows from 2D objects using cyclic polygons in Javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published