Converting a Shader from pure GLSL?

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
User avatar
Andynonomous
Prole
Posts: 13
Joined: Sat Sep 20, 2014 7:42 pm
Location: Ottawa Canada

Converting a Shader from pure GLSL?

Post by Andynonomous »

Hi guys, I'm just starting to learn how to use shaders and hope to learn eventually to write my own shaders, but for now my question is this:

Is it generally possible to convert any glsl shader effect into one that will work with LOVE? Or are there some cases where converting a shader to a LOVE compatible one is not feasible?

The shader I'm specifically curious about is this one: https://www.shadertoy.com/view/4dXGR4

I'd appreciate any advice anyone could offer. Thanks!
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: Converting a Shader from pure GLSL?

Post by s-ol »

Andynonomous wrote:Hi guys, I'm just starting to learn how to use shaders and hope to learn eventually to write my own shaders, but for now my question is this:

Is it generally possible to convert any glsl shader effect into one that will work with LOVE? Or are there some cases where converting a shader to a LOVE compatible one is not feasible?

The shader I'm specifically curious about is this one: https://www.shadertoy.com/view/4dXGR4

I'd appreciate any advice anyone could offer. Thanks!
the shadertoy-like shaders (fragment only) should always be convertable, but other ones might not be because we can't set the whole vertex info (only x, y, u, v and color)

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
User avatar
Andynonomous
Prole
Posts: 13
Joined: Sat Sep 20, 2014 7:42 pm
Location: Ottawa Canada

Re: Converting a Shader from pure GLSL?

Post by Andynonomous »

Thanks! I just didn't want to spend time trying to learn to convert it if it wasn't going to be possible in the end. Thanks again and wish me luck!
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 7 guests