]> git.mxchange.org Git - simgear.git/commitdiff
Fix a mistake.
authorehofman <ehofman>
Fri, 14 Jan 2005 13:12:44 +0000 (13:12 +0000)
committerehofman <ehofman>
Fri, 14 Jan 2005 13:12:44 +0000 (13:12 +0000)
simgear/screen/texture.cxx

index adf98ec8e442754f0fb6710164cbdc3755599ccf..91550edb2b13bdbc291677844b0bf2aa72e19b78 100644 (file)
@@ -832,7 +832,7 @@ SGTexture::make_normalmap(float brightness) {
 
          map[mpos+0] = (128+(texture_data[posxp1]-texture_data[dpos])/2);
          map[mpos+1] = (128+(texture_data[posyp1]-texture_data[dpos])/2);
-         map[mpos+2] = 128 + GLubyte(128*brightness);
+         map[mpos+2] = 127 + GLubyte(128*brightness);
       }
 
    free (texture_data);