do it in the shader -Nick
On Tue, Jun 8, 2010 at 5:27 PM, Alessandro Terenzi <[email protected]>wrote: > Maybe this is a silly question...anyway, how is it possible to change the > number of times a texture repeats over a surface? > > For instance I have a model that comes with a texture already applied to it > (for example a cube with the texture applied to each face) and I'd like to > let the same texture repeat N times (along U or V or both) over each face. > So far I can imagine only to change (by scaling) the texture coordinates of > each vertex, is there any other way to achive the same result (maybe using > methods from osg::Texture or osg::Texture2D)? > > If changing texture coordinates is the only way, is there a 'clever' way to > do it? For example changing some parameter that affects every vertex in the > geometry "in one shot" instead of changing each vertex coords > individually...I'm just guessing... > > Thanks. > Alessandro > > _______________________________________________ > 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

