Page 14 of 33
Re: Share a Shader!
Posted: Tue Nov 27, 2012 11:53 am
by Ellohir
I just got a new PC and I'm trying all the shaders on the thread (awesome stuff, btw), and that was my favourite one! I'm sorry it doesn't work for you
I know that feel.
Anyway, this is what it looks like, just in case you wondered.
Re: Share a Shader!
Posted: Tue Nov 27, 2012 12:13 pm
by kikito
Wow, I was thinking about something like this the other day for a space simulator (adding effects when meteorites/ships partially hide big stars in the background). It doesn't seem to work in all devices, but I guess it could be acceptable for it to "degrade gracefully" as long as the effect is kindof subtle.
Re: Share a Shader!
Posted: Tue Nov 27, 2012 12:37 pm
by ioxu
So here's a simple-as-can-be demo for the lightrays shader.
If this doesn't work, then it's very probably something in the shader. My 1st lightrays demo maybe has some other cruft that's stopping it from displaying.
Thanks for the comments everyone
It should look like this:
- simple lightrays
- screen_lightrays_simple.png (26.04 KiB) Viewed 4123 times
Re: Share a Shader!
Posted: Tue Nov 27, 2012 5:58 pm
by Lafolie
Had some much fun with the lightrays shader. Absolutely brilliant!
Re: Share a Shader!
Posted: Wed Nov 28, 2012 1:10 am
by Clouds
ioxu wrote:It should look like this:
Alas, it does not.
Re: Share a Shader!
Posted: Wed Nov 28, 2012 4:01 am
by ioxu
Clouds wrote:Alas, it does not.
How disappointing
Sorry about that.
Reading about it on the nets, I wonder if it has something to do with the loop inside the shader on your hardware.
Have you had any pixeleffects work on your gfx that use loops?
My fü is not strong enough to work out if this shader can be made without a loop.
Re: Share a Shader!
Posted: Mon Dec 03, 2012 12:08 pm
by ioxu
http://www.iquilezles.org/apps/shadertoy/
Cool shaders!
I have managed to get a lot of them working as pixeleffects with hardly any effort at all.
All I had to do was replace void main(void) with love's preferred vec4 effect() and change a few of the variable declarations.
The 3d apple is very nice.
Re: Share a Shader!
Posted: Mon Dec 03, 2012 3:59 pm
by Ref
ioxu wrote:The 3d apple is very nice.
Any change of providing a .love?
Re: Share a Shader!
Posted: Mon Dec 03, 2012 4:18 pm
by Nixola
You can try this, but I don't have knowdlege to "port" the GLSL to LÖVESL or whatever is it nor a way to check if this works
Re: Share a Shader!
Posted: Mon Dec 03, 2012 4:34 pm
by Ref
Nope!
Get a lovely black screen with a little white 2 in the upper left hand corner.