Two small fixes;

- draw extra wire on solid displayed curve objects (cyclic filled curves)
  now doesnt draw wires of filled faces
- set glPolygonOffset much more narrow now, since we dont need it for zbuf
  value selecting
This commit is contained in:
2004-09-29 21:11:13 +00:00
parent 6106f87776
commit c42f0fc5cf
2 changed files with 4 additions and 4 deletions

View File

@@ -500,8 +500,8 @@ void bglPolygonOffset(float dist)
/* dist is from camera to center point */
if(winmat[15]>0.5) offs= 0.00005*dist*G.vd->dist; // ortho tweaking
else offs= 0.001*dist; // should be clipping value or so...
if(winmat[15]>0.5) offs= 0.00001*dist*G.vd->dist; // ortho tweaking
else offs= 0.0005*dist; // should be clipping value or so...
winmat[14]-= offs;
offset+= offs;