Search code examples
openglvectornormals

Normalvector for Quad


I've drawn a simple quad with glBegin and glEnd. With a for-loop I create copies of the quad and rotate it around my y-Axis in 3D space. Now the problem is that I only see the quads in the front. These in the back are not displayed. I assume that the problem lies within the normal vector, which direction is towards me. Is there a possibility to define two normal vectors for one quad.


Solution

  • Sounds like you need to disable backface culling:

    glDisable(GL_CULL_FACE);