Re: [osg-users] Vertex Shader Attributes

2007-12-11 Thread Schmidt, Michael M
ember 10, 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

Re: [osg-users] Shader Vertex Problems

2007-12-10 Thread Schmidt, Michael M
Please disregard the post below. I was resetting the vertex data elsewhere. Thanks, Mike From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Schmidt, Michael M Sent: Monday, December 10, 2007 2:38 PM To: osg-users@lists.openscenegraph.org Subject

[osg-users] Vertex Shader Attributes

2007-12-10 Thread Schmidt, Michael M
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? I am now trying to pass in my own attribute, but my program is crashing. Below is a snippet of what I'm doing.

[osg-users] Shader Vertex Problems

2007-12-10 Thread Schmidt, Michael M
Hi, I'm getting odd behavior with a vertex shader. The following pseudo-code snippets do not produce the same results. Can anyone tell me why? Program 1: //Outside the shader, set a shader attribute to negative offset. vertex_shader_attribute = -offset; ...