On 12 Sep 2011, at 17:02, Christopher Wright wrote: >> All I wanted was the >> maximum value out of a bunch of inputs, so I wrote this: >> >> max(a,max(b,max(c,max(e,f)))) >> >> So don't use e, pi or anything like that as an input :) > > > Also of note: max is variadic (at least on Lion, probably on 10.5 and 10.6 > as well, but I haven't checked), so you can do this more simply with this: > > max(a, b, c, d, _e, f) > > same goes for min()
Good to know, I'm way too used to GLSL with it's fixed arity! (Also good to know: you can right-click on these words you don't understand and pick 'look up' to find out what they mean. I hadn't heard of variadic either :D ) Chris _______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (Quartzcomposer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com