Enhanced specular illumination.
authorrlk <rlk@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Tue, 1 Jan 2008 20:16:10 +0000 (20:16 +0000)
committerrlk <rlk@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Tue, 1 Jan 2008 20:16:10 +0000 (20:16 +0000)
Modified all material files to be more consistent and to use new specular handling as needed.

git-svn-id: https://s.snth.net/svn/neverball/trunk@1358 78b8d119-cf0a-0410-b17c-f493084dd1d7

124 files changed:
ball/game.c
data/mtrl/arrow
data/mtrl/arrow-dark
data/mtrl/arrow-green
data/mtrl/arrow-light
data/mtrl/black
data/mtrl/blue
data/mtrl/blue-gas
data/mtrl/blue-sea
data/mtrl/box
data/mtrl/box-small
data/mtrl/brass
data/mtrl/brick
data/mtrl/caution
data/mtrl/chrome
data/mtrl/chrome-faceted
data/mtrl/coin-blue
data/mtrl/coin-green-check
data/mtrl/coin-green-check2
data/mtrl/coin-green-dark
data/mtrl/coin-green-light
data/mtrl/coin-green-small
data/mtrl/coin-orange
data/mtrl/coin-orange-big
data/mtrl/coin-pad-blue
data/mtrl/coin-pad-brown
data/mtrl/coin-pad-green-dark
data/mtrl/coin-pad-grey
data/mtrl/coin-purple
data/mtrl/coin-purple-check
data/mtrl/coin-rainbow
data/mtrl/coin-red
data/mtrl/coin-shiny
data/mtrl/edge
data/mtrl/edge-blue
data/mtrl/edge-brown
data/mtrl/edge-green
data/mtrl/edge-green-check
data/mtrl/edge-green-check2
data/mtrl/edge-green-dark
data/mtrl/edge-green-light
data/mtrl/edge-green-offset
data/mtrl/edge-orange
data/mtrl/edge-orange-big
data/mtrl/edge-purple
data/mtrl/edge-purple-check
data/mtrl/edge-red
data/mtrl/edge2-blue
data/mtrl/edge2-brown
data/mtrl/edge2-green
data/mtrl/edge2-green-check
data/mtrl/edge2-green-dark
data/mtrl/edge2-green-light
data/mtrl/edge2-green-offset
data/mtrl/edge2-green-small
data/mtrl/edge2-orange
data/mtrl/edge2-orange-big
data/mtrl/edge2-purple
data/mtrl/edge2-purple-check
data/mtrl/edge2-red
data/mtrl/glass
data/mtrl/glass-dark
data/mtrl/goal
data/mtrl/goal-special
data/mtrl/hole
data/mtrl/invisible
data/mtrl/marble-brown-polished
data/mtrl/marble-purple
data/mtrl/marble-purple-polished
data/mtrl/mirror
data/mtrl/mirror-check
data/mtrl/mirror-dark
data/mtrl/plank
data/mtrl/plank-diagonal
data/mtrl/plank-small
data/mtrl/plank-small-dark
data/mtrl/poof-blue
data/mtrl/purple-pattern
data/mtrl/rail
data/mtrl/rainbow
data/mtrl/red
data/mtrl/red-gas
data/mtrl/red-glass
data/mtrl/red-pattern
data/mtrl/rotate180
data/mtrl/rotate90
data/mtrl/shadow-rock
data/mtrl/starting-line
data/mtrl/switch
data/mtrl/teleporter
data/mtrl/thwomp
data/mtrl/timer
data/mtrl/turf-blue
data/mtrl/turf-brown
data/mtrl/turf-disco
data/mtrl/turf-green
data/mtrl/turf-green-check
data/mtrl/turf-green-check2
data/mtrl/turf-green-dark
data/mtrl/turf-green-light
data/mtrl/turf-green-offset
data/mtrl/turf-green-small
data/mtrl/turf-grey
data/mtrl/turf-grey-dark
data/mtrl/turf-orange
data/mtrl/turf-orange-big
data/mtrl/turf-purple
data/mtrl/turf-purple-check
data/mtrl/turf-red
data/mtrl/turf-shiny
data/mtrl/turf-shiny-light
data/mtrl/white
data/mtrl/wood
data/mtrl/wood-check
data/mtrl/wood-light
data/mtrl/yellow
putt/game.c
share/config.c
share/geom.c
share/gui.c
share/mapc.c
share/solid.c
share/solid.h
share/solid_gl.c

index 8e1d452..57c9a42 100644 (file)
@@ -397,6 +397,7 @@ static void game_draw_balls(const struct s_file *fp)
 
     m_basis(M, fp->uv[0].e[0], fp->uv[0].e[1], fp->uv[0].e[2]);
 
+    glPushAttrib(GL_LIGHTING_BIT);
     glPushMatrix();
     {
         glTranslatef(fp->uv[0].p[0],
@@ -411,6 +412,7 @@ static void game_draw_balls(const struct s_file *fp)
         ball_draw();
     }
     glPopMatrix();
+    glPopAttrib();
 }
 
 static void game_draw_items(const struct s_file *fp)
@@ -418,62 +420,66 @@ static void game_draw_items(const struct s_file *fp)
     float r = 360.f * SDL_GetTicks() / 1000.f;
     int hi;
 
-    item_push(ITEM_COIN);
+    glPushAttrib(GL_LIGHTING_BIT);
     {
-        for (hi = 0; hi < fp->hc; hi++)
+        item_push(ITEM_COIN);
+        {
+            for (hi = 0; hi < fp->hc; hi++)
 
-            if (fp->hv[hi].t == ITEM_COIN && fp->hv[hi].n > 0)
-            {
-                glPushMatrix();
+                if (fp->hv[hi].t == ITEM_COIN && fp->hv[hi].n > 0)
                 {
-                    glTranslatef(fp->hv[hi].p[0],
-                                 fp->hv[hi].p[1],
-                                 fp->hv[hi].p[2]);
-                    glRotatef(r, 0.0f, 1.0f, 0.0f);
-                    item_draw(&fp->hv[hi], r);
+                    glPushMatrix();
+                    {
+                        glTranslatef(fp->hv[hi].p[0],
+                                     fp->hv[hi].p[1],
+                                     fp->hv[hi].p[2]);
+                        glRotatef(r, 0.0f, 1.0f, 0.0f);
+                        item_draw(&fp->hv[hi], r);
+                    }
+                    glPopMatrix();
                 }
-                glPopMatrix();
-            }
-    }
-    item_pull();
+        }
+        item_pull();
 
-    item_push(ITEM_SHRINK);
-    {
-        for (hi = 0; hi < fp->hc; hi++)
+        item_push(ITEM_SHRINK);
+        {
+            for (hi = 0; hi < fp->hc; hi++)
 
-            if (fp->hv[hi].t == ITEM_SHRINK)
-            {
-                glPushMatrix();
+                if (fp->hv[hi].t == ITEM_SHRINK)
                 {
-                    glTranslatef(fp->hv[hi].p[0],
-                                 fp->hv[hi].p[1],
-                                 fp->hv[hi].p[2]);
-                    glRotatef(r, 0.0f, 1.0f, 0.0f);
-                    item_draw(&fp->hv[hi], r);
+                    glPushMatrix();
+                    {
+                        glTranslatef(fp->hv[hi].p[0],
+                                     fp->hv[hi].p[1],
+                                     fp->hv[hi].p[2]);
+                        glRotatef(r, 0.0f, 1.0f, 0.0f);
+                        item_draw(&fp->hv[hi], r);
+                    }
+                    glPopMatrix();
                 }
-                glPopMatrix();
-            }
-    }
-    item_pull();
+        }
+        item_pull();
 
-    item_push(ITEM_GROW);
-    {
-        for (hi = 0; hi < fp->hc; hi++)
+        item_push(ITEM_GROW);
+        {
+            for (hi = 0; hi < fp->hc; hi++)
 
-            if (fp->hv[hi].t == ITEM_GROW)
-            {
-                glPushMatrix();
+                if (fp->hv[hi].t == ITEM_GROW)
                 {
-                    glTranslatef(fp->hv[hi].p[0],
-                                 fp->hv[hi].p[1],
-                                 fp->hv[hi].p[2]);
-                    glRotatef(r, 0.0f, 1.0f, 0.0f);
-                    item_draw(&fp->hv[hi], r);
+                    glPushMatrix();
+                    {
+                        glTranslatef(fp->hv[hi].p[0],
+                                     fp->hv[hi].p[1],
+                                     fp->hv[hi].p[2]);
+                        glRotatef(r, 0.0f, 1.0f, 0.0f);
+                        item_draw(&fp->hv[hi], r);
+                    }
+                    glPopMatrix();
                 }
-                glPopMatrix();
-            }
+        }
+        item_pull();
     }
-    item_pull();
+    glPopAttrib();
 }
 
 static void game_draw_goals(const struct s_file *fp, float rx, float ry)
@@ -653,11 +659,6 @@ static void game_draw_back(int pose, int d, const float p[3])
 static void game_draw_fore(int pose, float rx,
                                      float ry, int d, const float p[3])
 {
-    static const float a[4] = { 0.2f, 0.2f, 0.2f, 1.0f };
-    static const float s[4] = { 0.0f, 0.0f, 0.0f, 1.0f };
-    static const float e[4] = { 0.0f, 0.0f, 0.0f, 0.0f };
-    static const float h[1] = { 0.0f };
-    
     const float *ball_p = file.uv->p;
     const float  ball_r = file.uv->r;
 
@@ -711,11 +712,6 @@ static void game_draw_fore(int pose, float rx,
 
         /* Draw the particles and light columns. */
 
-        glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT,   a);
-        glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR,  s);
-        glMaterialfv(GL_FRONT_AND_BACK, GL_EMISSION,  e);
-        glMaterialfv(GL_FRONT_AND_BACK, GL_SHININESS, h);
-
         glEnable(GL_COLOR_MATERIAL);
         glDisable(GL_LIGHTING);
         glDepthMask(GL_FALSE);
@@ -732,6 +728,8 @@ static void game_draw_fore(int pose, float rx,
                 game_draw_swchs(&file);
             }
             glEnable(GL_TEXTURE_2D);
+
+            glColor3f(1.0f, 1.0f, 1.0f);
         }
         glDepthMask(GL_TRUE);
         glEnable(GL_LIGHTING);
index 5dfe6a9..cf9568b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 0.99
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 66
+45.000000
index 5dfe6a9..cf9568b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 0.99
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 66
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index 5dfe6a9..cf9568b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 0.99
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 66
+45.000000
index 45a912d..7401926 100644 (file)
@@ -1,6 +1,7 @@
-0.0 0.0 0.0 1.0
-0.0 0.0 0.0 1.0
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-20.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index a286bc8..8c48f2b 100644 (file)
@@ -1,6 +1,7 @@
-0.8 0.8 0.8 1.0
-0.6 0.6 0.6 1.0
-0.4 0.4 0.4 1.0
-0.0 0.0 0.0 1.0
-20.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+1.000000 1.000000 1.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+20.000000
 1
+45.000000
index 726b332..6eba1fc 100644 (file)
@@ -1,6 +1,7 @@
-0.8 0.8 0.8 0.7\r
-0.6 0.6 0.6 0.7\r
-0.4 0.4 0.4 0.7\r
-0.0 0.0 0.0 1\r
-60.0\r
-2\r
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
+2
+45.000000
index 4a4e953..e93a223 100644 (file)
@@ -1,6 +1,7 @@
-0.8 0.8 0.8 1.0
-0.6 0.6 0.6 1.0
-0.4 0.4 0.4 1.0
-0.0 0.0 0.0 1.0
-128.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 6
+45.000000
index d7de3f3..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-60.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d7de3f3..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-60.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index 25a5e4c..48c6e13 100644 (file)
@@ -1,6 +1,7 @@
-0.8 0.8 0.8 1.0
-0.6 0.6 0.6 1.0
-0.4 0.4 0.4 1.0
-0.0 0.0 0.0 1.0
-20.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 9
+45.000000
index d7de3f3..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-60.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index a286bc8..7401926 100644 (file)
@@ -1,6 +1,7 @@
-0.8 0.8 0.8 1.0
-0.6 0.6 0.6 1.0
-0.4 0.4 0.4 1.0
-0.0 0.0 0.0 1.0
-20.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index 25a5e4c..b388fad 100644 (file)
@@ -1,6 +1,7 @@
-0.8 0.8 0.8 1.0
-0.6 0.6 0.6 1.0
-0.4 0.4 0.4 1.0
-0.0 0.0 0.0 1.0
-20.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+1.000000 1.000000 1.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+40.000000
 9
+45.000000
index 41de371..07ed8b2 100644 (file)
@@ -1,7 +1,7 @@
-0.8 0.8 0.8 1.0
-0.6 0.6 0.6 1.0
-0.4 0.4 0.4 1.0
-0.0 0.0 0.0 1.0
-20.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+1.000000 1.000000 1.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+40.000000
 9
-0
+0.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index 69ccbdc..cf9568b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-0.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 66
+45.000000
index 69ccbdc..cf9568b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-0.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 66
+45.000000
index ccd704e..cf9568b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 66
+45.000000
index 69ccbdc..cf9568b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-0.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 66
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index 014df98..f66ac4b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-0.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 65
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index 0955011..e19a0f1 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 0.5
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-0.0
+1.000000 1.000000 1.000000 0.500000
+0.200000 0.200000 0.200000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+10.000000
 4
+45.000000
index 9ba8a62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-0.8 0.8 0.8 1.0
-0.8 0.8 0.8 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-20.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index 434583f..a62ad89 100644 (file)
@@ -1,6 +1,7 @@
-0.5 0.5 0.5 0.2
-0.6 0.6 0.6 1.0
-0.0 0.0 0.0 1.0
-0.0 0.0 0.0 1.0
-40.0
+1.000000 1.000000 1.000000 0.200000
+0.200000 0.200000 0.200000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+20.000000
 10
+45.000000
index 4e34eef..d18b72a 100644 (file)
@@ -1,6 +1,7 @@
-0.2 0.2 0.2 0.5
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-0.0 0.0 0.0 1.0
-40.0
+0.200000 0.200000 0.200000 0.500000
+0.200000 0.200000 0.200000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+20.000000
 10
+45.000000
index 5dfe6a9..cf9568b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 0.99
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 66
+45.000000
index 5dfe6a9..cf9568b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 0.99
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 66
+45.000000
index 964c277..cf9568b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-60.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 66
+45.000000
index 017c4ed..8b3b762 100644 (file)
@@ -1,6 +1,7 @@
-0.0 0.0 0.0 0.0
-0.0 0.0 0.0 0.0
-0.0 0.0 0.0 0.0
-0.0 0.0 0.0 0.0
-0.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 0
+45.000000
index 555bbc7..d4cbebf 100644 (file)
@@ -1,6 +1,7 @@
-0.2 0.2 0.2 0.8
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-20.0
+0.200000 0.200000 0.200000 0.800000
+0.200000 0.200000 0.200000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+20.000000
 4
+45.000000
index b9feed6..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.2 0.2 0.2 1.0
-60.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index b8961fa..9acc552 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 0.85
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-128
+1.000000 1.000000 1.000000 0.800000
+0.200000 0.200000 0.200000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+20.000000
 4
+45.000000
index 51d9d1e..cd0d21e 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 0.2
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-0.0
+1.000000 1.000000 1.000000 0.200000
+0.200000 0.200000 0.200000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+20.000000
 4
+45.000000
index 2bc215e..a483382 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 0.4
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-0.0
+1.000000 1.000000 1.000000 0.400000
+0.200000 0.200000 0.200000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+20.000000
 4
+45.000000
index ea51501..c729a70 100644 (file)
@@ -1,6 +1,7 @@
-0.0 0.0 0.0 0.5
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-0.0
+0.000000 0.000000 0.000000 0.500000
+0.200000 0.200000 0.200000 1.000000
+0.500000 0.500000 0.500000 1.000000
+0.000000 0.000000 0.000000 1.000000
+10.000000
 4
+45.000000
index d7de3f3..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-60.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d7de3f3..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-60.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d7de3f3..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-60.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d7de3f3..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-60.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index 21e1521..094e85d 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 98
+45.000000
index 06fd897..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-0.5 0.5 0.5 1.0
-0.0 0.0 0.0 1.0
-30.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index a286bc8..8c48f2b 100644 (file)
@@ -1,6 +1,7 @@
-0.8 0.8 0.8 1.0
-0.6 0.6 0.6 1.0
-0.4 0.4 0.4 1.0
-0.0 0.0 0.0 1.0
-20.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+1.000000 1.000000 1.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+20.000000
 1
+45.000000
index d7de3f3..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-60.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index a286bc8..8c48f2b 100644 (file)
@@ -1,6 +1,7 @@
-0.8 0.8 0.8 1.0
-0.6 0.6 0.6 1.0
-0.4 0.4 0.4 1.0
-0.0 0.0 0.0 1.0
-20.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+1.000000 1.000000 1.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+20.000000
 1
+45.000000
index 726b332..c1c1ab7 100644 (file)
@@ -1,6 +1,7 @@
-0.8 0.8 0.8 0.7\r
-0.6 0.6 0.6 0.7\r
-0.4 0.4 0.4 0.7\r
-0.0 0.0 0.0 1\r
-60.0\r
-2\r
+1.000000 1.000000 1.000000 0.700000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
+2
+45.000000
index 9f3f72e..9ba51dc 100644 (file)
@@ -1,6 +1,7 @@
-0.8 0.8 0.8 0.7\r
-0.6 0.6 0.6 0.7\r
-0.4 0.4 0.4 0.7\r
-0.0 0.0 0.0 1.0\r
-60.0\r
-1\r
+1.000000 1.000000 1.000000 0.700000
+0.200000 0.200000 0.200000 1.000000
+0.300000 0.300000 0.300000 1.000000
+0.000000 0.000000 0.000000 1.000000
+10.000000
+1
+45.000000
index 06fd897..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-0.5 0.5 0.5 1.0
-0.0 0.0 0.0 1.0
-30.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index 5dfe6a9..cf9568b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 0.99
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 66
+45.000000
index 5dfe6a9..cf9568b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 0.99
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 66
+45.000000
index 69ccbdc..cf9568b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-0.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 66
+45.000000
index d7de3f3..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-60.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index 5dfe6a9..cf9568b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 0.99
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 66
+45.000000
index 5dfe6a9..cf9568b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 0.99
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 66
+45.000000
index 5dfe6a9..cf9568b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 0.99
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 66
+45.000000
index 5dfe6a9..cf9568b 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 0.99
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 66
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index d452d62..7401926 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-10.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+0.000000
 1
+45.000000
index 0955011..e19a0f1 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 0.5
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-0.0
+1.000000 1.000000 1.000000 0.500000
+0.200000 0.200000 0.200000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+10.000000
 4
+45.000000
index 0955011..e19a0f1 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 0.5
-1.0 1.0 1.0 1.0
-0.2 0.2 0.2 1.0
-0.0 0.0 0.0 1.0
-0.0
+1.000000 1.000000 1.000000 0.500000
+0.200000 0.200000 0.200000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.000000 0.000000 0.000000 1.000000
+10.000000
 4
+45.000000
index a9b20ea..d4e38c7 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-40.0
+0.700000 0.700000 0.700000 1.000000
+0.200000 0.200000 0.200000 1.000000
+1.000000 1.000000 1.000000 1.000000
+0.000000 0.000000 0.000000 1.000000
+10.000000
 1
+45.000000
index d7de3f3..8d03692 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-60.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.300000 0.300000 0.300000 1.000000
+0.000000 0.000000 0.000000 1.000000
+10.000000
 1
+45.000000
index d7de3f3..8d03692 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-60.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.300000 0.300000 0.300000 1.000000
+0.000000 0.000000 0.000000 1.000000
+10.000000
 1
+45.000000
index d7de3f3..8d03692 100644 (file)
@@ -1,6 +1,7 @@
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-1.0 1.0 1.0 1.0
-0.0 0.0 0.0 1.0
-60.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.300000 0.300000 0.300000 1.000000
+0.000000 0.000000 0.000000 1.000000
+10.000000
 1
+45.000000
index a286bc8..8d03692 100644 (file)
@@ -1,6 +1,7 @@
-0.8 0.8 0.8 1.0
-0.6 0.6 0.6 1.0
-0.4 0.4 0.4 1.0
-0.0 0.0 0.0 1.0
-20.0
+1.000000 1.000000 1.000000 1.000000
+0.200000 0.200000 0.200000 1.000000
+0.300000 0.300000 0.300000 1.000000
+0.000000 0.000000 0.000000 1.000000
+10.000000
 1
+45.000000
index 4dad79a..89477bd 100644 (file)
@@ -208,6 +208,7 @@ static void game_draw_balls(const struct s_file *fp)
             glPopMatrix();
         }
     }
+    glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
 }
 
 static void game_draw_goals(const struct s_file *fp, float rx, float ry)
index ba176f7..3a5a930 100644 (file)
@@ -429,6 +429,10 @@ int config_mode(int f, int w, int h)
         glEnable(GL_LIGHTING);
         glEnable(GL_BLEND);
 
+        glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL,
+                      GL_SEPARATE_SPECULAR_COLOR);
+        glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1);
+
         glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
         glDepthFunc(GL_LEQUAL);
 
index f543391..e79555d 100644 (file)
@@ -99,7 +99,7 @@ void ball_draw(void)
     static const float a[4] = { 0.2f, 0.2f, 0.2f, 1.0f };
     static const float s[4] = { 1.0f, 1.0f, 1.0f, 1.0f };
     static const float e[4] = { 0.2f, 0.2f, 0.2f, 1.0f };
-    static const float h[1] = { 64.0f };
+    static const float h[1] = { 20.0f };
 
     glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT,   a);
     glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR,  s);
@@ -176,7 +176,6 @@ void mark_draw(void)
     glDisable(GL_TEXTURE_2D);
     glDepthMask(GL_FALSE);
     {
-
         glCallList(mark_list);
     }
     glDepthMask(GL_TRUE);
@@ -344,7 +343,7 @@ void item_push(int type)
     static const float  a[4] = { 0.2f, 0.2f, 0.2f, 1.0f };
     static const float  s[4] = { 1.0f, 1.0f, 1.0f, 1.0f };
     static const float  e[4] = { 0.0f, 0.0f, 0.0f, 0.0f };
-    static const float  h[1] = { 32.0f };
+    static const float  h[1] = { 10.0f };
 
     glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT,   a);
     glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR,  s);
@@ -549,20 +548,6 @@ void flag_init(int b)
         glDisable(GL_LIGHTING);
         glDisable(GL_TEXTURE_2D);
         {
-            glBegin(GL_QUAD_STRIP);
-            {
-                for (i = 0; i <= n; i++)
-                {
-                    float x = fcosf(2.f * PI * i / n) * 0.01f;
-                    float y = fsinf(2.f * PI * i / n) * 0.01f;
-
-                    glColor3f(1.0f, 1.0f, 1.0f);
-                    glVertex3f(x, 0.0f,        y);
-                    glVertex3f(x, GOAL_HEIGHT, y);
-                }
-            }
-            glEnd();
-
             glBegin(GL_TRIANGLES);
             {
                 glColor3f(1.0f, 0.0f, 0.0f);
@@ -576,6 +561,20 @@ void flag_init(int b)
                 glVertex3f(GOAL_HEIGHT * 0.2f, GOAL_HEIGHT * 0.9f, 0.0f);
             }
             glEnd();
+
+            glBegin(GL_QUAD_STRIP);
+            {
+                for (i = 0; i <= n; i++)
+                {
+                    float x = fcosf(2.f * PI * i / n) * 0.01f;
+                    float y = fsinf(2.f * PI * i / n) * 0.01f;
+
+                    glColor3f(1.0f, 1.0f, 1.0f);
+                    glVertex3f(x, 0.0f,        y);
+                    glVertex3f(x, GOAL_HEIGHT, y);
+                }
+            }
+            glEnd();
         }
         glEnable(GL_TEXTURE_2D);
         glEnable(GL_LIGHTING);
@@ -682,6 +681,8 @@ void fade_draw(float k)
             }
             glEnd();
 
+            glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
+
             glEnable(GL_TEXTURE_2D);
             glEnable(GL_DEPTH_TEST);
             glEnable(GL_LIGHTING);
index 68a9b25..7f7b091 100644 (file)
@@ -1269,6 +1269,8 @@ void gui_paint(int id)
 
                 glEnable(GL_TEXTURE_2D);
                 gui_paint_text(id);
+
+                glColor4fv(gui_wht);
             }
             glEnable(GL_DEPTH_TEST);
             glEnable(GL_LIGHTING);
index f06ad74..f44b406 100644 (file)
@@ -402,10 +402,11 @@ static int read_mtrl(struct s_file *fp, const char *name)
 
     strncpy(mp->f, name, PATHMAX - 1);
 
-    mp->a[0] = mp->a[1] = mp->a[2] = mp->a[3] = 1.0f;
-    mp->d[0] = mp->d[1] = mp->d[2] = mp->d[3] = 1.0f;
-    mp->s[0] = mp->s[1] = mp->s[2] = mp->s[3] = 1.0f;
-    mp->e[0] = mp->e[1] = mp->e[2] = mp->e[3] = 1.0f;
+    mp->a[0] = mp->a[1] = mp->a[2] = 0.2f;
+    mp->d[0] = mp->d[1] = mp->d[2] = 0.8f;
+    mp->s[0] = mp->s[1] = mp->s[2] = 0.0f;
+    mp->e[0] = mp->e[1] = mp->e[2] = 0.0f;
+    mp->a[3] = mp->d[3] = mp->s[3] = mp->e[3] = 1.0f;
     mp->h[0] = 0.0f;
     mp->fl   = 0;
     mp->angle = 45.0f;
@@ -582,7 +583,7 @@ static void read_obj(struct s_file *fp, const char *name)
 
             else if (strncmp(line, "f", 1) == 0)
             {
-                if (fp->mv[mi].d[3] > 0)
+                if (fp->mv[mi].d[3] > 0.0f)
                     read_f(fp, line + 1, v0, t0, s0, mi);
             }
 
@@ -1534,7 +1535,7 @@ static void clip_lump(struct s_file *fp, struct s_lump *lp)
     lp->gc = 0;
 
     for (i = 0; i < lp->sc; i++)
-        if (fp->mv[plane_m[fp->iv[lp->s0 + i]]].d[3] > 0)
+        if (fp->mv[plane_m[fp->iv[lp->s0 + i]]].d[3] > 0.0f)
             clip_geom(fp, lp,
                       fp->iv[lp->s0 + i]);
 
index 82779ab..dd54091 100644 (file)
@@ -99,8 +99,8 @@ void sol_body_p(float p[3],
 
 static void sol_load_mtrl(FILE *fin, struct s_mtrl *mp)
 {
-    get_array(fin,  mp->a, 4);
     get_array(fin,  mp->d, 4);
+    get_array(fin,  mp->a, 4);
     get_array(fin,  mp->s, 4);
     get_array(fin,  mp->e, 4);
     get_array(fin,  mp->h, 1);
@@ -438,8 +438,8 @@ int sol_load_only_head(struct s_file *fp, const char *filename)
 
 static void sol_stor_mtrl(FILE *fout, struct s_mtrl *mp)
 {
-    put_array(fout,  mp->a, 4);
     put_array(fout,  mp->d, 4);
+    put_array(fout,  mp->a, 4);
     put_array(fout,  mp->s, 4);
     put_array(fout,  mp->e, 4);
     put_array(fout,  mp->h, 1);
index ca40579..d31a270 100644 (file)
 
 struct s_mtrl
 {
-    float a[4];                                /* ambient color              */
     float d[4];                                /* diffuse color              */
+    float a[4];                                /* ambient color              */
     float s[4];                                /* specular color             */
     float e[4];                                /* emission color             */
     float h[1];                                /* specular exponent          */
index d47af25..68b5c04 100644 (file)
@@ -80,8 +80,8 @@ static int sol_enum_body(const struct s_file *fp,
 
 static struct s_mtrl default_mtrl =
 {
-    { 0.2f, 0.2f, 0.2f, 1.0f },
     { 0.8f, 0.8f, 0.8f, 1.0f },
+    { 0.2f, 0.2f, 0.2f, 1.0f },
     { 0.0f, 0.0f, 0.0f, 1.0f },
     { 0.0f, 0.0f, 0.0f, 1.0f },
     { 0.0f, }, 0.0f, M_OPAQUE, 0, ""