-
Notifications
You must be signed in to change notification settings - Fork 25
-
Hi, I am playing around with the shadertoy to touch designer translator and some examples work perfectly, but the
shaders that looks more like "real" GLSL doesnt translate (such as https://shaderpark.com/sculpture/-Lhla0Vw2uP0RFTlyXn8)
Am I missing something fundamental?
I am very new at this so please excuse me if this is a F.A.Q.
kind regards,
/Lars
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 3 replies
-
Hi Lars,
At the moment there isn't a way to convert the raw GLSL Shader Park examples into the correct format for TouchDesigner. Shader Park started off as a GLSL helper library, and then we realized how helpful it was to abstract it into JavaScript (which uses our GLSL library under the hood). At the moment the TouchDesigner Plugin only supports the more recent Javascript format.
One thing to note is that we've created the ability to bind GLSL into javascript functions https://docs.shaderpark.com/references-js/glsl/glslFunc.html which is supported in the TD plugin.
If you're hoping to bring in the font, you'll need to include this texture msdf-left-align as a uniform in TouchDesinger. (note getting the font to work in TD would require a fair amount of prior shader knowledge). This is something that I'm interested in incorporating to the js library at some point also.
Beta Was this translation helpful? Give feedback.
All reactions
-
It actually does look like we included the ability to convert a GLSL example in the core library to TouchDesigner's format. I just haven't incorporated it into the TD component.
shader-park-core/targets/touchDesigner.js
Line 177 in 6e1fa04
Beta Was this translation helpful? Give feedback.
All reactions
-
thanks for the quick reply.
I think getting the font to works is probably above my level of "expertise" at the moment :)
but this is a supercool tool and the ability to play around here and then output it to TD GLSL is amazing.
Beta Was this translation helpful? Give feedback.
All reactions
-
Hey! I added the ability to render the GLSL shaders in the TD component. Screen Shot 2022年11月07日 at 2 33 24 PM
Here's a working example of loading in the font. https://drive.google.com/file/d/12WXHDTVPCx1jS_5f7Q1K9nAF7u8Vmx_Y/view?usp=share_link
Notice that I'm passing a reference from the font texture into the shader_material.
Beta Was this translation helpful? Give feedback.
All reactions
-
Amazing!
Will try as soon as possible!!
Beta Was this translation helpful? Give feedback.