]> git.mxchange.org Git - flightgear.git/commitdiff
Add support for contrast.
authorehofman <ehofman>
Fri, 14 Jan 2005 15:53:13 +0000 (15:53 +0000)
committerehofman <ehofman>
Fri, 14 Jan 2005 15:53:13 +0000 (15:53 +0000)
utils/Modeller/normalmap.cxx

index 80d1fe4d6fdb44c460c21ee93669b62f97239fa9..4e9b84ee35dafea342ad3895e96ee74a22e1ab15 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <string.h>
+#include <stdlib.h>
 #include <GL/gl.h>
 #include <simgear/screen/texture.hxx>
 
@@ -92,7 +93,7 @@ int main (int argc, char **argv)
       memcpy(normalmap_file+i, "_n.rgb\0", 7);
    }
 
-   texture.make_normalmap();
+   texture.make_normalmap(brightness, contrast);
    texture.write_texture(normalmap_file);
 
    free( normalmap_file );