Original Post
I am currently working on shadow mapping and I pretty much typed in all of what's on paulsprojects tutorial (if you know of it), and it didn't work so I'm going to the beginning. All I want to do is draw some stuff, save the depth components and then draw them onto a quad that covers the screen. Here is some code off the top of my head. GLuint depth; glGenTextures(1, &depth); glBindTexture(GL_TEXTURE_2D, depth); glCopyTexImage2D(.......GL_DEPTH_COMPONENT); glEnable(GL_TEXTURE_2D); glBegin(GL_QUADS); //code to draw the quad