Add support for contrast.
This commit is contained in:
parent
8caa0fe507
commit
b912026694
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#include <simgear/screen/texture.hxx>
|
#include <simgear/screen/texture.hxx>
|
||||||
|
|
||||||
|
@ -92,7 +93,7 @@ int main (int argc, char **argv)
|
||||||
memcpy(normalmap_file+i, "_n.rgb\0", 7);
|
memcpy(normalmap_file+i, "_n.rgb\0", 7);
|
||||||
}
|
}
|
||||||
|
|
||||||
texture.make_normalmap();
|
texture.make_normalmap(brightness, contrast);
|
||||||
texture.write_texture(normalmap_file);
|
texture.write_texture(normalmap_file);
|
||||||
|
|
||||||
free( normalmap_file );
|
free( normalmap_file );
|
||||||
|
|
Loading…
Reference in a new issue