Hello,

Just to make sure I'm not missing anything, I'd like to ask this. What
is the current state of GLES2 in OSG? What should be done to enable
texturing?

Similarly to how the osg_ModelViewProjectionMatrix uniform is
automatically set for the user's shaders to use, I thought that the
texture sampler should be set the same way, with a standard-named
uniform. However it doesn't look like that's the case... I couldn't
find this uniform.

I found that, in State::applyModeOnTexUnit, the code tries to do a
glEnable(GL_TEXTURE_2D), which is invalid in GLES2. OpenGL sets the
error flag "invalid enumerant" after that command.

Beyond adding a texture sampler to your fragment shader code, what
needs to be done to see a textured model with GLES2?

Thanks
Eduardo
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to