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
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
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.
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;
...
4 matches
Mail list logo