Shadertoy Conversion Help

Sat May 30, 2020 4:57 am

I've had luck pulling shadertoys into .glsl files and loading them into Magic. However, when I encounter a toy that has multiple "buffers" and layers, I'm not sure how to write that into one single shader file. My example would be this following toy: (how do I get this into a file for GLSLShader to interpret it?)

https://www.shadertoy.com/view/MsGSRd

Thanks,
Scott
sjdacruz
 
Posts: 3
Joined: Sat May 30, 2020 4:53 am

Re: Shadertoy Conversion Help

Sat May 30, 2020 3:07 pm

The GLSLShader module doesn't support those features. You will have to convert to ISF. Your best bet is the official ISF Editor, which can pull from Shadertoy: https://docs.vidvox.net/freebies_isf_editor.html
Eric
Site Admin
 
Posts: 2795
Joined: Wed Apr 09, 2014 9:28 pm

Re: Shadertoy Conversion Help

Sat May 30, 2020 5:08 pm

Thanks! I looked into it, and have successfully converted some shadertoys, however I'm having difficulty with the syntax to point to an incoming media source. It seems that "iChannel0' is not defined when ported over. When I correct it, it creates an ISF that is output only.

Is there any literature, or guides on how to correct these parameters, since it's outside the realm of Magic's native functionality?
sjdacruz
 
Posts: 3
Joined: Sat May 30, 2020 4:53 am

Re: Shadertoy Conversion Help

Mon Jun 01, 2020 7:40 pm

For an ISF module to have an input in Magic, it needs to have something like the following:
Code: Select all
   "INPUTS": [
      {
         "NAME": "inputImage",
         "TYPE": "image"
      },

Does that help?
Eric
Site Admin
 
Posts: 2795
Joined: Wed Apr 09, 2014 9:28 pm

Return to General Discussion

© 2020 Color & Music, LLC • This web site is mobile-friendly