/love_shaders

some shaders that work for love lua 0.9.1

Primary LanguageLuaMIT LicenseMIT

shaders in lua from various places

added incy wincy

the image does not do it justice shader incy wincy

see here for the shader toy version: https://www.shadertoy.com/view/7dGfWK

older notes

Notes on 2016-04-08 Found a new site and have added more examples :) http://thebookofshaders.com

More notes on 2014-07-17 Found this http://www.opengl.org/wiki/Built-in_Variable_(GLSL) And this article http://weworkweplay.com/play/introduction-to-glsl-and-fragment-pixel-shaders/ Which lead me to do shader1 The cool thing about shader1 is that it takes a vec2d mouse input parameter in the shader!

The other day I read this article http://blogs.love2d.org/content/beginners-guide-shaders and my mind was blown.

Here are some shaders that I found and translated to lua/love.

I am absolutely not the author of these shaders I just changed them enough to get them to work in lua. Complete and total props back to the original authors.

The site I used to find shaders is shadertoy https://www.shadertoy.com/

Amazing work is done there.

I tried to leave some comments in the files.

Very cool that love/lua even exists. Check it out here https://love2d.org/

To use any of these shaders you need love version 0.9.1 (the newest as of 2014/07/01). Get love installed then you can clone this repo and just run love on each of the directories. The shaders are really mind blowing to me. Cool stuff.

Here is a screenshot of what the flame shader looks like: shader flame example

And then one from the shader fire too shader fire

tony