Dear Mr. Hanson, Thanks for the quick reply. I was able to define the data as vertex attributes and access these attributes in the vertex shader. Things are up and running.
Thanks once again. Regards Harash ________________________________ From: Chris 'Xenon' Hanson <[email protected]> To: OpenSceneGraph Users <[email protected]> Sent: Wed, March 23, 2011 1:39:18 AM Subject: Re: [osg-users] Accessing Geometry user Data in Geometry / Vertex / Fragment Shader On 3/22/2011 1:14 PM, Harash Sharma wrote: > For one of the applications I working on, I need to attach some data to all > the >geometry > nodes of the scenegraph. The data may be different for all the nodes. I need > to >use this > data for some calculations during rendering. Is there a way to access this > data >in the > geometry / vertex / fragment shaders. If the data is per-node, look at using Uniforms. If it is per-vertex, use vertex attributes. > Harash Kumar Sharma -- Chris 'Xenon' Hanson, omo sanza lettere. [email protected]http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. "There is no Truth. There is only Perception. To Perceive is to Exist." - Xen _______________________________________________ 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

