Hello, I am trying to render a texture on the back face of a square. I am doing as follow:
in the setup method, I call
When drawing my objects, one that needs to be drawn front face, and the other back face, I am applying the texture like this:
//back face textured mesh tex.bind(); glFrontFace(GL_CW); glCullFace(GL_BACK); backFaceObject.draw(); tex.unbind(); // front face textured mesh tex.bind(); glCullFace(GL_FRONT); frontFaceObject.draw(); tex.unbind();
The front face object is drawn as expected, as it was drawn before, without the
gl calls. But I can’t see the
I have also tried to use
GL_BACK but without luck. Any idea about what I am doing wrong?