From 951258275445f84da4431eb320b1d142d5fe9567 Mon Sep 17 00:00:00 2001 From: Steve Jackson Date: Fri, 5 Apr 2019 15:25:22 -0700 Subject: [PATCH] Fix shading in 2d This looks funky with the current shiny material, but is less wrong than before --- src/athena/viewer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/athena/viewer.py b/src/athena/viewer.py index 7b882a4..fb90269 100644 --- a/src/athena/viewer.py +++ b/src/athena/viewer.py @@ -70,8 +70,8 @@ def reset2DCamera( self ): ratio = self.width() / self.height() x = 100 * ratio self.camera().lens().setOrthographicProjection( -x, x, -100, 100, -100, 100 ) - self.camera().setPosition( vec3d( 0, 0, 0 ) ) - self.camera().setViewCenter( vec3d( 0, 0, -100) ) + self.camera().setPosition( vec3d( 0, 0, 90 ) ) + self.camera().setViewCenter( vec3d( 0, 0, 0) ) self.camera().rightVector = vec3d( 1, 0, 0 ) self.orientCamera()