mirror of
https://github.com/tanema/light_world.lua.git
synced 2024-12-24 20:24:19 +00:00
Update README.md
This commit is contained in:
parent
302bd42d5f
commit
c5c66a4e3d
41
README.md
41
README.md
@ -3,25 +3,6 @@
|
|||||||
This is the light modeling done by Priorblue [here](https://bitbucket.org/PriorBlue/love2d-light-and-shadow-engine),
|
This is the light modeling done by Priorblue [here](https://bitbucket.org/PriorBlue/love2d-light-and-shadow-engine),
|
||||||
only it has been largely refactored and edited to allow for scaling and proper translation.
|
only it has been largely refactored and edited to allow for scaling and proper translation.
|
||||||
|
|
||||||
## Features ##
|
|
||||||
* **[Preview (Video)](https://www.youtube.com/watch?v=6V5Dtsa6Nd4)**
|
|
||||||
* polygon shadow calculation [Preview](http://onepixelahead.de/love2d_polyshadow.png)
|
|
||||||
* circle shadow calculation
|
|
||||||
* image shadow calculation [Preview](http://onepixelahead.de/love2d_polyshadow18.png)
|
|
||||||
* shadow blur
|
|
||||||
* light color, range, smooth and glow [Preview](http://onepixelahead.de/love2d_polyshadow2.png)
|
|
||||||
* ambient light
|
|
||||||
* self shadowing on images with normal maps [Preview](http://onepixelahead.de/love2d_polyshadow_pixelshadow.png)
|
|
||||||
* dynamic glow effect on images and circle/poly objects [Preview](http://onepixelahead.de/love2d_polyshadow_glow.png) [Preview](http://onepixelahead.de/love2d_polyshadow15.gif)
|
|
||||||
* generate flat or gradient normal maps [Preview](http://onepixelahead.de/love2d_polyshadow7.png)
|
|
||||||
* convert height maps to normal maps [Preview](http://onepixelahead.de/love2d_polyshadow8.png)
|
|
||||||
* generate a normal map directly from the image (usually gives poor results)
|
|
||||||
* shadow color and alpha (glass) [Preview](http://onepixelahead.de/love2d_polyshadow9.png)
|
|
||||||
* directional light [Preview](http://onepixelahead.de/love2d_polyshadow12.png)
|
|
||||||
* refractions (moveable) [Preview](http://onepixelahead.de/love2d_polyshadow13.gif)
|
|
||||||
* chromatic aberration [Preview](http://onepixelahead.de/love2d_polyshadow16.gif)
|
|
||||||
* postshader with many included postshaders, plus easy to extend
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
copy the lib folder into your project at any path
|
copy the lib folder into your project at any path
|
||||||
@ -47,8 +28,26 @@ function love.draw()
|
|||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
please see the examples directory to see how it is fully used. also this project can
|
For more information please check out the (wiki)[https://github.com/tanema/light_world.lua/wiki] and see the examples directory to see how it is fully used. This project can be run with love to see the demonstrations in action.
|
||||||
be run to show you the deomnstrations.
|
|
||||||
|
## Features ##
|
||||||
|
* **[Preview (Video)](https://www.youtube.com/watch?v=6V5Dtsa6Nd4)**
|
||||||
|
* polygon shadow calculation [Preview](http://onepixelahead.de/love2d_polyshadow.png)
|
||||||
|
* circle shadow calculation
|
||||||
|
* image shadow calculation [Preview](http://onepixelahead.de/love2d_polyshadow18.png)
|
||||||
|
* shadow blur
|
||||||
|
* light color, range, smooth and glow [Preview](http://onepixelahead.de/love2d_polyshadow2.png)
|
||||||
|
* ambient light
|
||||||
|
* self shadowing on images with normal maps [Preview](http://onepixelahead.de/love2d_polyshadow_pixelshadow.png)
|
||||||
|
* dynamic glow effect on images and circle/poly objects [Preview](http://onepixelahead.de/love2d_polyshadow_glow.png) [Preview](http://onepixelahead.de/love2d_polyshadow15.gif)
|
||||||
|
* generate flat or gradient normal maps [Preview](http://onepixelahead.de/love2d_polyshadow7.png)
|
||||||
|
* convert height maps to normal maps [Preview](http://onepixelahead.de/love2d_polyshadow8.png)
|
||||||
|
* generate a normal map directly from the image (usually gives poor results)
|
||||||
|
* shadow color and alpha (glass) [Preview](http://onepixelahead.de/love2d_polyshadow9.png)
|
||||||
|
* directional light [Preview](http://onepixelahead.de/love2d_polyshadow12.png)
|
||||||
|
* refractions (moveable) [Preview](http://onepixelahead.de/love2d_polyshadow13.gif)
|
||||||
|
* chromatic aberration [Preview](http://onepixelahead.de/love2d_polyshadow16.gif)
|
||||||
|
* postshader with many included postshaders, plus easy to extend
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user