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.
Post Reply
oddic
Prole
Posts: 1
Joined: Sat Apr 14, 2012 5:35 pm

Re: Share a Shader!

Post by oddic » Sat Apr 14, 2012 5:40 pm

I'm sorry if this is ignorant, but LÖVE says my graphics card does not support pixel effects, and when I googled it it seemed it does...
I have an iMac with a radeon x1600
Last edited by oddic on Sun Apr 15, 2012 10:44 pm, edited 2 times in total.

User avatar
RPG
Party member
Posts: 157
Joined: Wed Mar 02, 2011 5:02 am
Location: Russia
Contact:

Re: Share a Shader!

Post by RPG » Sun Apr 15, 2012 1:37 pm

Raycast is too slow. Look at shader toy demos, they are fast and pretty.

User avatar
kraftman
Party member
Posts: 277
Joined: Sat May 14, 2011 10:18 am

Re: Share a Shader!

Post by kraftman » Sun Apr 15, 2012 2:53 pm

RPG wrote:Raycast is too slow. Look at shader toy demos, they are fast and pretty.
which shader toy demo's?

User avatar
RPG
Party member
Posts: 157
Joined: Wed Mar 02, 2011 5:02 am
Location: Russia
Contact:

Re: Share a Shader!

Post by RPG » Tue Apr 17, 2012 6:42 pm

All 3D demos: Apple, 704, etc...

User avatar
Ref
Party member
Posts: 687
Joined: Wed May 02, 2012 11:05 pm

Re: Share a Shader!

Post by Ref » Sun May 06, 2012 8:20 pm

Quick question on conditional statements in GLSL.
How do you put multiple conditions in a single 'if' statement (not familiar with C++).
Can get nested ifs to work but not multi-conditional (see attachment).
Attachments
mirror.love
Simple mirror test script
(134.01 KiB) Downloaded 417 times

User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Share a Shader!

Post by bartbes » Mon May 07, 2012 6:56 am

You'd use && for and and || for or.
I would, however, like to tell you that conditionals are very inefficient in shaders.

User avatar
Ref
Party member
Posts: 687
Joined: Wed May 02, 2012 11:05 pm

Re: Share a Shader!

Post by Ref » Mon May 07, 2012 3:17 pm

Thanks bartbes.
Appears I was just screwing up some of the syntax.
Have to do some more thinking as to how to avoid the conditionals.
Tried using sequential application of shaders but got different results then with conditionals.
Dumb question - where is a source for functions available in GSGL language used by shaders?

User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Share a Shader!

Post by vrld » Mon May 07, 2012 7:17 pm

Here is a GLSL reference. It is also linked in the wiki at love.graphics.newPixelEffect.
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine

User avatar
Ref
Party member
Posts: 687
Joined: Wed May 02, 2012 11:05 pm

Re: Share a Shader!

Post by Ref » Tue May 08, 2012 2:43 am

Thank you vrid.
Should have found this info on the WIKI but still quite new here.
Best

User avatar
Ref
Party member
Posts: 687
Joined: Wed May 02, 2012 11:05 pm

Re: Share a Shader!

Post by Ref » Wed May 09, 2012 12:52 am

A simple shader.
Image just a place holder.
Would like a transparent ball shader.
Anyone have one?
Attachments
Looking Glass.love
Image magnifier
(206 KiB) Downloaded 488 times

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests