Hello Janna,

If you use a shader program you'll have to bind the attributes to the program:
const std::string name="v_tangent"
program->addBindAttribLocation(name, index);

Then in the vertex shader you can access the attribute via:
attribute vec3 v_tangent;

hth
Sebastian

Hi,

I am working on optimizing existing code for height field. I've enabled VBO for 
height field geometry which seems to make draw time faster however it seems can 
not retrieve vertex attribute data in the vertex shader anymore.

Is there a special way of using VBO with geometry which has additional vertex 
attribute data set up? Data is set up on vertex attribute array with the index 
15.
Thank you!

Cheers,
Janna

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=50382#50382





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to