hi guys,
these days, i am very interested in playing with shaders. and i found the site http://www.shadertoy.com.
you can see these amazing effects 2d & 3d. the language in that site is a little different from love's, so i desided to do some conversion.
with this util, you can run the code copied from shadertoy directly, or you can output the converted code to love shader.
here are some screen shots.
here is the .love file, with all the buildin images and some downloaded examples.
for now, this util dont support the texturecube function and vr function, and the channel sources are limited to image files(shadertoy supports sound and video).
this util is for easy shader learning in love, you can use it freely, but all right of the oringal shaders reserve to the orignal shader coders. i will delete it if any infringement.
[util] shadertoy shader effect viewer
Re: [util] shadertoy shader effect viewer
That's incredibly useful! I like checking out shadertoy too periodically, but was slightly disappointed at the lack of usage within Löve, but now that's been resolved! Thanks a bunch!
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
personal page and a raycaster
Re: [util] shadertoy shader effect viewer
This is quite awesome and useful.
((_((_CRAYOLA_((_((_> GitHub <_((_((_CRAYOLA_((_(()
Re: [util] shadertoy shader effect viewer
Davidobot wrote:That's incredibly useful! I like checking out shadertoy too periodically, but was slightly disappointed at the lack of usage within Löve, but now that's been resolved! Thanks a bunch!
thanks for support, hope you enjoy it.bakpakin wrote:This is quite awesome and useful.
- AntonioModer
- Party member
- Posts: 202
- Joined: Fri Jun 15, 2012 5:31 pm
- Location: Belarus
- Contact:
Re: [util] shadertoy shader effect viewer
WOW!
Alexar, this is awesome. shadertoy.com has a lot of good examples (2d shadows, gradients, fractals, ...)
Thanks!
mandelbrot "doubles", Simple path tracer run well on LOVE 0.9.2
Where you get raycast2d.glsl ? I can't find this on shadertoy.com.
Alexar, this is awesome. shadertoy.com has a lot of good examples (2d shadows, gradients, fractals, ...)
Thanks!
mandelbrot "doubles", Simple path tracer run well on LOVE 0.9.2
Where you get raycast2d.glsl ? I can't find this on shadertoy.com.
- zorg
- Party member
- Posts: 3465
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: [util] shadertoy shader effect viewer
Is it just me, or should the mouse-controlled light source in the raycasting example move with the mouse cursor, and not mirrored horizontally and vertically? Because it moves like that on my end :v
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Re: [util] shadertoy shader effect viewer
sorry,it's my mistake, and fix that byzorg wrote:Is it just me, or should the mouse-controlled light source in the raycasting example move with the mouse cursor, and not mirrored horizontally and vertically? Because it moves like that on my end :v
Code: Select all
iSystem.iMouse[1],iSystem.iMouse[2] = love.mouse.getPosition()
iSystem.iMouse[1]=resolution[1]-iSystem.iMouse[1]
iSystem.iMouse[2]=resolution[2]-iSystem.iMouse[2]
Re: [util] shadertoy shader effect viewer
i changed the file name, the origin name is something like "distance based 2d soft shadow", i forgot.AntonioModer wrote:WOW!
Alexar, this is awesome. shadertoy.com has a lot of good examples (2d shadows, gradients, fractals, ...)
Thanks!
mandelbrot "doubles", Simple path tracer run well on LOVE 0.9.2
Where you get raycast2d.glsl ? I can't find this on shadertoy.com.
-
- Prole
- Posts: 4
- Joined: Thu Sep 27, 2018 10:07 am
Re: [util] shadertoy shader effect viewer
This was very broken when I tried it. I'm pretty sure a lot has changed since this version of love so now this code looks pretty bad.
I updated it to 11.3 and made it work with pre-converted glsl code.
You can also change the resolution by changing the window size now.
Arrow keys switch between shaders. It will skip any that can't compile (which is several).
Enjoy!
I updated it to 11.3 and made it work with pre-converted glsl code.
You can also change the resolution by changing the window size now.
Arrow keys switch between shaders. It will skip any that can't compile (which is several).
Enjoy!
-
- Prole
- Posts: 4
- Joined: Thu Sep 27, 2018 10:07 am
Re: [util] shadertoy shader effect viewer
I couldn't help it, I added a bunch more example shaders from shadertoy.com
Mouse inversion is fixed now forgot about that the first time lol
Mouse inversion is fixed now forgot about that the first time lol
Who is online
Users browsing this forum: Google [Bot] and 1 guest