I like the solution we have now as it requires nothing beyond GLSL code to run shaders. I prefer having these things in the patch since that is exactly how Pd is supposed to work. Is it so odd to make objects conform to specs rather than making up your own?
On 8/16/07, Wesley Smith wesley.hoke@gmail.com wrote:
I don't think it makes it less flexible except in that vertex and fragment shaders can't be arbitrarily matched (which they can't be anyway unless the varyings are the same). What it does provide is automatic default values which is really nice. With the scheme I described earlier, sampler units can also be changed on the fly. An XML format does not prohibit such things. In addition, one can add text descriptions to the shader and parameters which depending on your taste may or may not be useful.
wes