Page 7 of 33

Re: Share a Shader!

Posted: Sat Apr 14, 2012 5:40 pm
by oddic
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

Re: Share a Shader!

Posted: Sun Apr 15, 2012 1:37 pm
by RPG
Raycast is too slow. Look at shader toy demos, they are fast and pretty.

Re: Share a Shader!

Posted: Sun Apr 15, 2012 2:53 pm
by kraftman
RPG wrote:Raycast is too slow. Look at shader toy demos, they are fast and pretty.
which shader toy demo's?

Re: Share a Shader!

Posted: Tue Apr 17, 2012 6:42 pm
by RPG
All 3D demos: Apple, 704, etc...

Re: Share a Shader!

Posted: Sun May 06, 2012 8:20 pm
by Ref
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).

Re: Share a Shader!

Posted: Mon May 07, 2012 6:56 am
by bartbes
You'd use && for and and || for or.
I would, however, like to tell you that conditionals are very inefficient in shaders.

Re: Share a Shader!

Posted: Mon May 07, 2012 3:17 pm
by Ref
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?

Re: Share a Shader!

Posted: Mon May 07, 2012 7:17 pm
by vrld
Here is a GLSL reference. It is also linked in the wiki at love.graphics.newPixelEffect.

Re: Share a Shader!

Posted: Tue May 08, 2012 2:43 am
by Ref
Thank you vrid.
Should have found this info on the WIKI but still quite new here.
Best

Re: Share a Shader!

Posted: Wed May 09, 2012 12:52 am
by Ref
A simple shader.
Image just a place holder.
Would like a transparent ball shader.
Anyone have one?