how to warp texture in openGL? (Perspective correction?)
问题 I wanna make the OpenGL program can present images and warp the images presented. Although I achieved image rendering using OpenGL, I don't know how to warp an image. An warpable example I want is (Reference): But a picture I got is: As I know, this problem is related to perspective correction mapping. But I don't know about that well. Here is my source code. void imageRender(Shader initShader, Shader imgShader, char *path){ glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST); float positions