From: Jason Daly (jdaly++at++ist.ucf.edu)
Date: 12/15/2005 11:33:34
Sakis Gaitatzes wrote:
>Hello all,
>
>I would like to pass down to a GLSL vertex/fragment shader generic
>vertex attributes for processing.
>
>In OpenGL the function glVertexAttrib() is used for this purpose but I
>cannot find the corresponding one for Performer.
>
>Also It would be nice if someone had a Performer example showing off
>this functionality.
>
>
>
First, make sure you're using Performer 3.2.1, as generics were broken
before then. Next, you have to use pfGeoArrays, as pfGeoSets don't
support generic attributes. Then all you have to do is this:
geoArray->setMultiAttr(PFGA_GENERIC_ARRAY, <attribute number>, <size>,
<OpenGL type>,
<stride>, <data pointer>);
--"J"
This archive was generated by hypermail 2b29 : Thu Dec 15 2005 - 11:33:38 PST