Re: [osg-users] Vertex Shader Attributes

2007-12-11 Thread Schmidt, Michael M
, 2007 4:11 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Vertex Shader Attributes Schmidt, Michael M wrote: Hi, I was trying to use gl_SecondaryColor to pass in a vertex position offset. However, I noticed strange behavior. Does anyone know if gl_SecondaryColor

Re: [osg-users] Vertex Shader Attributes

2007-12-11 Thread Robert Osfield
Hi Michael, On Dec 11, 2007 2:06 PM, Schmidt, Michael M [EMAIL PROTECTED] wrote: I declared the attribute exactly as you wrote. I figured out that it was crashing because I still had a left-over geom-setSecondaryColorArray(new osg::Vec4Array); I didn't populate the array, so the crash

Re: [osg-users] Vertex Shader Attributes

2007-12-10 Thread Jason Daly
Schmidt, Michael M wrote: Hi, I was trying to use gl_SecondaryColor to pass in a vertex position offset. However, I noticed strange behavior. Does anyone know if gl_SecondaryColor gets clamped to some value? Based on your code, why not declare: attribute vec4 centerPoint; in your