Previous topicNext topic

GLSL Shader parameter extraction

Questions, comments, feedback, etc.
Post Reply
pojitonov
Posts: 2
Joined: Tue Sep 06, 2016 10:16 am

GLSL Shader parameter extraction

Post by pojitonov »

Hi everyone, I just started using Magic. Possibility to use the GLSL shaders is amazing. I am wondering is it possible to extract some variables from the shared code into Magic. SO it will provide ability to adjust the visuals in live performances. I am envisioning it like publishing some variable in the patch input so I will be able connect some output to manipulate how visual will be rendered. I know by default GLSLShader patch has some initial params like X,Y, Z etx. But from mu perspective it very limited and not really provide flexibility to manipulate some custom things.
Magic
Site Admin
Posts: 3441
Joined: Wed Apr 09, 2014 9:28 pm

Re: GLSL Shader parameter extraction

Post by Magic »

Magic supports the ISF format, which has the features you're looking for :).

Here's the web site: https://www.interactiveshaderformat.com/

And here's the section in the Magic user's guide: https://magicmusicvisuals.com/downloads ... e.html#ISF

You can also search these forums for "ISF" -- there are a lot of helpful posts.
pojitonov
Posts: 2
Joined: Tue Sep 06, 2016 10:16 am

Re: GLSL Shader parameter extraction

Post by pojitonov »

Thanks, finally understood. I can convert any GLSL effect to ISF by adding a little amount of code at the beginning, basically that does exactly that I want. Looks like I have asked very stupid question :) Because ISF doest exactly what I am asking, it provides ability to manipulate parameters of GLSL.
Post Reply