Share a Shader!

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
Ellohir
Party member
Posts: 235
Joined: Sat Oct 22, 2011 11:12 pm

Re: Share a Shader!

Post 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.
Attachments
shdr.png
shdr.png (297.87 KiB) Viewed 3727 times
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Share a Shader!

Post 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.
When I write def I mean function.
User avatar
ioxu
Prole
Posts: 8
Joined: Wed Mar 30, 2011 2:43 pm

Re: Share a Shader!

Post 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 :awesome:

It should look like this:
simple lightrays
simple lightrays
screen_lightrays_simple.png (26.04 KiB) Viewed 3723 times
lightrays_simple.love
simple lightrays, no canvases, single draw
(4.39 KiB) Downloaded 380 times
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Share a Shader!

Post by Lafolie »

Had some much fun with the lightrays shader. Absolutely brilliant!

Image
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
Clouds
Prole
Posts: 23
Joined: Tue Nov 27, 2012 4:06 am

Re: Share a Shader!

Post by Clouds »

ioxu wrote:It should look like this:
Alas, it does not. :(
Attachments
nope.png
nope.png (2.03 KiB) Viewed 3692 times
User avatar
ioxu
Prole
Posts: 8
Joined: Wed Mar 30, 2011 2:43 pm

Re: Share a Shader!

Post 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.
User avatar
ioxu
Prole
Posts: 8
Joined: Wed Mar 30, 2011 2:43 pm

Re: Share a Shader!

Post 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.
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: Share a Shader!

Post by Ref »

ioxu wrote:The 3d apple is very nice.
Any change of providing a .love?
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Share a Shader!

Post 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
Attachments
apple.love
(34.52 KiB) Downloaded 319 times
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: Share a Shader!

Post by Ref »

Nope!
Get a lovely black screen with a little white 2 in the upper left hand corner.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 75 guests