Incidentally, there's a JavaScript library called Sylvester http://sylvester.jcoglan.com/ that replicates many of the built-in OpenGL and GLSL matrix and vector functions. You can poke around in the code and see how they work.
alx On 9 Feb 2011, at 07:22, Alastair Leith <qc.student...@gmail.com> wrote: > would this JS function be correctly called Normalize or Clamp? > > function Normalize (a) > { > b = Math.min (1, Math.max(0, a)); > return b > } > > Does normalizing typically map a whole (defined) range of values to [0,1] or > just Filter/Clamp values to [0,1]? I read the OpenGL doc > (GLSL-Land-spec-4.00.8) but I'm none the wiser. > > best > alastair > > > The notion of looking on at life has always been hateful to me. What am I if > I am not a participant? In order to be, I must participate. > Antoine de Saint-Exupery > > _______________________________________________ > 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/the_voder%40yahoo.co.uk > > This email sent to the_vo...@yahoo.co.uk
_______________________________________________ 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