Changed the transformation order to match the ray marching shader :p
authorEleni Maria Stea <estea@igalia.com>
Sat, 27 Apr 2019 22:01:30 +0000 (01:01 +0300)
committerEleni Maria Stea <estea@igalia.com>
Sat, 27 Apr 2019 22:01:30 +0000 (01:01 +0300)
src/main.cc

index 6132aae..d17214c 100644 (file)
@@ -87,8 +87,8 @@ static void display()
 
        glMatrixMode(GL_MODELVIEW);
        glLoadIdentity();
-       glRotatef(cam_phi, 1, 0, 0);
-       glRotatef(cam_theta, 0, 1, 0);
+       glRotatef(-cam_theta, 0, 1, 0);
+       glRotatef(-cam_phi, 1, 0, 0);
        glTranslatef(0, 0, -cam_dist);
 
        if(sdrprog) {