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

Reply via email to