<div>We have a system that loads GLSL and ARB_fragement/vertex shaders with no need to add or alter the shader code from spec.&nbsp; Why would we add code to change that?&nbsp; </div>
<div>&nbsp;</div>
<div>In GEM you can set the samplers&#39;&nbsp;texture units on the fly in the patch&nbsp;which follows the design of Pd.&nbsp; Your suggestion makes that less flexible.<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 8/16/07, <b class="gmail_sendername">Wesley Smith</b> &lt;<a href="mailto:wesley.hoke@gmail.com">wesley.hoke@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I&#39;m curious why you say this.&nbsp;&nbsp;From my point of view, wrapping the<br>shader in XML allows for something that reads it to easily link
<br>together vertex, geometry, and fragment shader and set both program<br>parameters as well as uniform parameters with default values in<br>addition to autmatically defining what messages the shader can<br>receive.&nbsp;&nbsp;It&#39;s very similar to the cgFX files in this sense but
<br>without the GUI descriptions or other things you can do with those<br>files.&nbsp;&nbsp;Among other things, it make multitexturing in shaders painless<br>because you can assign in the file what units go to what samplers.<br>For a usability standpoint, I see great benefits to wrapping the raw
<br>shader code in extra information, so I&#39;d be curious what you see as<br>the design flaws with such a system.<br><br>wes<br><br>On 8/16/07, chris clepper &lt;<a href="mailto:cgclepper@gmail.com">cgclepper@gmail.com</a>
&gt; wrote:<br>&gt; I mean anything other than GLSL spec code.&nbsp;&nbsp;That includes XML.<br>&gt;<br>&gt;<br>&gt;<br>&gt; On 8/16/07, Wesley Smith &lt;<a href="mailto:wesley.hoke@gmail.com">wesley.hoke@gmail.com</a>&gt; wrote:<br>
&gt; &gt; By wrapper code do you mean XML or do you mean scripting languages?<br>&gt; &gt;<br>&gt; &gt; wes<br>&gt; &gt;<br>&gt; &gt; On 8/16/07, chris clepper &lt; <a href="mailto:cgclepper@gmail.com">cgclepper@gmail.com
</a>&gt; wrote:<br>&gt; &gt; &gt; Just a quick note on GLSL and GEM: only GLSL spec shaders can be used<br>&gt; with<br>&gt; &gt; &gt; GEM, no wrapper code or hacks will ever be supported.&nbsp;&nbsp;Frankly, the apps<br>&gt; &gt; &gt; that use these things have design flaws.
<br>&gt; &gt;<br>&gt;<br>&gt;<br></blockquote></div><br>