To complete my answere:

2011/5/4 Nan WANG <nan.c...@gmail.com>

>  could you explain why here you used texCoord1?
>>
>
>  because of we setting '1' here?
>>
> here, you push tex2D in the texture unit 1

>         sset->setTextureAttributeAndModes(1,tex2D,osg::StateAttribute::ON);
>>
> here you set uniform tex to 1

>         sset->addUniform(new osg::Uniform("tex",1));
>>
>> i dont think so ...
>>
>> But you can use any texCoord you want. Generally the texCoord 1 for
consistency.

HTH
David Callu

>
>>
>>
>>
>> Thank you!
>>
>> Cheers,
>> Nan
>>
>> ------------------
>> Read this topic online here:
>> http://forum.openscenegraph.org/viewtopic.php?p=38990#38990
>>
>>
>>
>>
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to