Hi all, I'm trying to combine two data sources in a shader: * "Terrain" model - a large object in OSG or TXP formats. * Metadata grid - a data structure that provides additional information for 2D coordinates in the terrain (at a certain resolution).
I'd like to use some of the additional metadata values, in a fragment shader that runs on the terrain object. In other words, modify each pixel based on an additional value from the metadata grid. I tried to pass the values as vertex attributes: compute the world location of each vertex, and set the vertex attribute from the metadata grid. That didn't work very well, as the additional data resolution is very high, almost the same as the terrain textures, and the vertices are too far apart from each other. How would you recommend to pass the required data from the application to the shader? Thanks, Shahar ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=54673#54673 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org