OpenGL gluLookat not working with shaders on
问题 When i want to use gluLookat and have the shaders on it doesnt move the "camera" when i turn the shaders off it works correctly. Is there something missing in my shaders, i cant figure out what. void display(void) { glClear(GL_COLOR_BUFFER_BIT); glClearColor(0.8, 0.8, 0.8, 0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); gluLookAt(0.5,0,1,0.5,0,0,0,1,0); glColor3f(0, 0, 0); glDrawArrays(GL_TRIANGLES, 0, 6); glDrawArrays(GL_LINES, 6, 6); glDrawArrays(GL_TRIANGLES, 12,6); glDrawArrays(GL_LINES