Trying To Load An Osg Model With Textures Allocated In Textureunit1
I want to render an Openscenegraph model with textures under two constraints: 1) Using shaders (opengles20) 2) Uploading the textures to the textureUnit1 on the GPU (NO the default
Solution 1:
The way you set the texture to tex unit 1 is correct, are you sure the model you're loading contains texture coordinates at index 1 as well?
Just make sure there are such tex coords, otherwise try reusing a different tex coord index like gl_MultiTexCoord0
Post a Comment for "Trying To Load An Osg Model With Textures Allocated In Textureunit1"