OpenGL ES Render to Texture
问题 I have been having trouble finding straightforward code to render a scene to a texture in OpenGL ES (specifically for the iPhone, if that matters). I am interested in knowing the following: How do you render a scene to a texture in OpenGL ES? What parameters must you use to create a texture that is capable of being a render target in OpenGL ES? Are there any implications with applying this rendered texture to other primitives? 回答1: This is how I'm doing it. I define a texture variable (I use