Demos (master): isosurf: smaller steps for moving user clip plane

Keith Whitwell keithw at kemper.freedesktop.org
Fri Sep 17 15:54:24 UTC 2010


Module: Demos
Branch: master
Commit: 2d848cc96116b20a24d2608e1003cfc65415f73e
URL:    http://cgit.freedesktop.org/mesa/demos/commit/?id=2d848cc96116b20a24d2608e1003cfc65415f73e

Author: Keith Whitwell <keithw at vmware.com>
Date:   Fri Sep 17 16:52:39 2010 +0100

isosurf: smaller steps for moving user clip plane

---

 src/demos/isosurf.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/demos/isosurf.c b/src/demos/isosurf.c
index a5b21ff..c9601e9 100644
--- a/src/demos/isosurf.c
+++ b/src/demos/isosurf.c
@@ -969,7 +969,7 @@ static void Key( unsigned char key, int x, int y )
       break;
    case '-':
    case '_':
-      plane[3] += 2.0;
+      plane[3] += 0.5;
       glMatrixMode(GL_MODELVIEW);
       glLoadIdentity();
       glClipPlane(GL_CLIP_PLANE0, plane);
@@ -978,7 +978,7 @@ static void Key( unsigned char key, int x, int y )
       break;
    case '+':
    case '=':
-      plane[3] -= 2.0;
+      plane[3] -= 0.5;
       glMatrixMode(GL_MODELVIEW);
       glLoadIdentity();
       glClipPlane(GL_CLIP_PLANE0, plane);




More information about the mesa-commit mailing list