Camera works!

This commit is contained in:
2018-03-23 15:45:07 -05:00
parent 28acb12efc
commit 134099c2b1
2 changed files with 1 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ class IMICFPS
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST)
glRotatef(@pitch,1,0,0)
glRotatef(@yaw,0,1,0)
glTranslatef(@x, @y, @z)
glTranslatef(-@x, @y, -@z)
glMatrixMode(GL_MODELVIEW) # The modelview matrix is where object information is stored.
glLoadIdentity

BIN
pixel_test.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B