[Plib-cvs] plib/src/ssg ssgLoad3ds.cxx,1.37,1.38
Brought to you by:
sjbaker
From: Bram S. <br...@us...> - 2005-02-04 22:26:02
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9819 Modified Files: ssgLoad3ds.cxx Log Message: Avoid specular anomalies in 3ds files. Index: ssgLoad3ds.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoad3ds.cxx,v retrieving revision 1.37 retrieving revision 1.38 diff -u -d -r1.37 -r1.38 --- ssgLoad3ds.cxx 2 Sep 2002 06:05:48 -0000 1.37 +++ ssgLoad3ds.cxx 4 Feb 2005 22:25:53 -0000 1.38 @@ -589,6 +589,11 @@ st -> disable( GL_TEXTURE_2D ); } + // don't show specular if exponent is 0, more info at: + // http://sf.net/mailarchive/forum.php?thread_id=6481452&forum_id=4479 + if ( ! mat->shi ) + st -> setMaterial ( GL_SPECULAR, 0,0,0,1 ); + return st ; } |