Original Post
Hello, I've found a shadowmap-tutorial on the internet which includes these lines: genS[0] = 1.0f; genS[1]=genS[2]=genS[3]=0.0f; genT[1] = 1.0f; genT[0]=genT[2]=genT[3]=0.0f; genR[2] = 1.0f; genR[0] = genR[1] = genR[3] = 0.0f; genQ[3] = 1.0f; genQ[0]=genQ[1]=genQ[2]=0.0f; glTexGeni( GL_S, GL_TEXTURE_GEN_MODE, GL_EYE_LINEAR ); glTexGeni( GL_T, GL_TEXTURE_GEN_MODE, GL_EYE_LINEAR ); glTexGeni( GL_R, GL_TEXTURE_GEN_MODE, GL_EYE_LINEAR ); glTexGeni( GL_Q, GL_TEXTURE_GEN_MODE, GL_EYE_LINEAR ); glTexGenfv( GL_S, GL_EYE_PLANE, genS ); glTexGenfv( GL_T, GL_EYE_PLANE, genT ); glTexGenfv( GL_R, GL_EYE_PLANE, genR ); glTexGenfv( GL_Q, GL_EYE_PLANE, genQ ); can anybody explain to me what these two lines actually do? The redbook says these functions generate the texture-coordinates automatically, but from what? and how? I would really like to get an understanding of the code... thx a lot...