1 |
< |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
1 |
> |
/* Copyright (c) 1999 Silicon Graphics, Inc. */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ SGI"; |
59 |
|
dolights = 0; |
60 |
|
domats = 1; |
61 |
|
gmNext[i].listid = rgl_octlist(file, gmNext[i].cent, &gmNext[i].rad); |
62 |
+ |
gmNext[i].rad *= 1.732; /* go to corners */ |
63 |
|
#ifdef DEBUG |
64 |
|
fprintf(stderr, "Loaded octree \"%s\" into listID %d with radius %f\n", |
65 |
|
file, gmNext[i].listid, gmNext[i].rad); |
103 |
|
GL_POLYGON_BIT|GL_LIGHTING_BIT); |
104 |
|
glDisable(GL_LIGHTING); |
105 |
|
glDisable(GL_DITHER); |
106 |
< |
glShadeModel(GL_SMOOTH); |
106 |
> |
glShadeModel(GL_FLAT); |
107 |
|
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); |
108 |
|
/* don't actually write depth */ |
109 |
|
glDepthMask(GL_FALSE); |