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 »

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 »

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 »

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 »

All 3D demos: Apple, 704, etc...
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: Share a Shader!

Post 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).
Attachments
mirror.love
Simple mirror test script
(134.01 KiB) Downloaded 566 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 »

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: 702
Joined: Wed May 02, 2012 11:05 pm

Re: Share a Shader!

Post 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?
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 »

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: 702
Joined: Wed May 02, 2012 11:05 pm

Re: Share a Shader!

Post by Ref »

Thank you vrid.
Should have found this info on the WIKI but still quite new here.
Best
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: Share a Shader!

Post by Ref »

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 654 times
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests