From 134099c2b14a5982550bf59adb2874963a208cff Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Fri, 23 Mar 2018 15:45:07 -0500 Subject: [PATCH] Camera works! --- lib/objects/camera.rb | 2 +- pixel_test.png | Bin 0 -> 162 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 pixel_test.png diff --git a/lib/objects/camera.rb b/lib/objects/camera.rb index 7757050..3e89b69 100644 --- a/lib/objects/camera.rb +++ b/lib/objects/camera.rb @@ -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 diff --git a/pixel_test.png b/pixel_test.png new file mode 100644 index 0000000000000000000000000000000000000000..819f8197677d6275ff2982168683ec4c0321114e GIT binary patch literal 162 zcmeAS@N?(olHy`uVBq!ia0vp^%s|YEZzkxv|` zNXFB}F@)oKazen*|MMFg7dAG&G+}0T);g>cugqZT%JNP_?`8l{9fPN