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*
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
2 matches
Mail list logo