<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[ANSWERED] GLSL ISADORA_FLOAT_PARAM Issues?]]></title><description><![CDATA[<p>Hey All</p>
<p>I am working with the GLSL Shader actor. I've created a shader and want to push my floating variables to the Actor for interaction in the Patch. This sample code wont compile and I get a syntax error for Isadora_Float_Param which I believe didn't happen in Isadora 2?</p>
<p><a href="https://support.troikatronix.com/support/solutions/articles/13000025645-glsl-shader-actor-tutorial">https://support.troikatronix.com/support/solutions/articles/13000025645-glsl-shader-actor-tutorial</a></p>
<p>As well some of the code won't compile in tutorial as there are some typos.... extra characters like ")"which you have to fix to compile </p>
<p>As a Sanity check I ran this code from the tutorial and get the Float Param error. I am running 3.0.8f12</p>
<p>When commented out the syntax error resolves and the code runs. </p>
<p>Does anyone else get an error? This is with all sample code in the tutorial </p>
<p></p>
<p><img src="/assets/uploads/files/1623344951121-screen-shot-2021-06-10-at-1.04.42-pm.png" style="cursor:pointer" /><br /></p>
<p>ISADORA_FLOAT_PARAM(red_color, red, 0.0, 1.0, 1.0, "Amount of red in the output color.");<br />// ISADORA_FLOAT_PARAM(green_color, gren, 0.0, 1.0, 1.0, "Amount of green in the output color.");<br />// ISADORA_FLOAT_PARAM(blue_color, blue, 0.0, 1.0, 1.0, "Amount of blue in the output color.");<br /><br />uniform float red_color;// note: must match first parameter of ISADORA_FLOAT_PARAM<br />uniform float green_color;// note: must match first parameter of ISADORA_FLOAT_PARAM<br />uniform float blue_color;// note: must match first parameter of ISADORA_FLOAT_PARAM<br /><br />void main(void) {<br /><br />   // vec4 is contains four floating point values; it is<br />   // often used to represent the red, green blue and alpha<br />   // channel components of a color. Here we create a color<br />   // using the red, green and blue uniform variables with<br />   // full (1.0) alpha. We assign this to a vec4 called c0.<br /><br />   vec4 c0 = vec4(red_color, green_color, blue_color, 1.0);<br /><br />   // gl_FragColor is a predefined variable that receives the color<br />   // output of the shader. By setting gl_FragColor to the values<br />   // contained in c0, the output color will be controlled by the<br />   // three uniform inputs.<br /><br />   gl_FragColor = c0;<br /><br />}</p>]]></description><link>https://community.troikatronix.com/topic/7414/answered-glsl-isadora_float_param-issues</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 15:35:02 GMT</lastBuildDate><atom:link href="https://community.troikatronix.com/topic/7414.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 10 Jun 2021 17:13:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [ANSWERED] GLSL ISADORA_FLOAT_PARAM Issues? on Fri, 11 Jun 2021 06:57:49 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/1212">@bob288</a></p><p>Hi there Bob, </p><p>It seems you already figured out the issue. Let us know how it happened. The article that you link has the correct code snippet?</p><p>Anyhow, I mark this question as Answered.</p><p>- Juriaan</p>]]></description><link>https://community.troikatronix.com/post/46245</link><guid isPermaLink="true">https://community.troikatronix.com/post/46245</guid><dc:creator><![CDATA[Juriaan]]></dc:creator><pubDate>Fri, 11 Jun 2021 06:57:49 GMT</pubDate></item><item><title><![CDATA[Reply to [ANSWERED] GLSL ISADORA_FLOAT_PARAM Issues? on Thu, 10 Jun 2021 18:32:20 GMT]]></title><description><![CDATA[<p>The issue was Solved. ISADORA_FLOAT_PARAM needs to be commented out for Isadora to recognize. </p>]]></description><link>https://community.troikatronix.com/post/46241</link><guid isPermaLink="true">https://community.troikatronix.com/post/46241</guid><dc:creator><![CDATA[Bob288]]></dc:creator><pubDate>Thu, 10 Jun 2021 18:32:20 GMT</pubDate></item></channel></rss>