Re: [osg-users] Shaders and multitextures

2008-11-18 Thread Ümit Uzun
Hi Alejandro, What is the purpouse of the second parameter (int) of the Uniform constructor. second parameter represent the texture unit which your texture can be used from this unit in shader. osg::Uniform* terrainTextureSampler2 = new osg::Uniform(EarthNight, 1); osg::Uniform*

[osg-users] Shaders and multitextures

2008-11-17 Thread Alejandro Aguilar Sierra
Hello: I built a terrain with two textures to test osgmultitexturecontrol. It fade between both textures. Now, for the effect I am looking for in another scene, the use of shaders would be convenient. I want to reproduce in osg the example from chapter 10.3 of the orange book (Multitexturing