Normal_Heights
Just a simple (rust) library to create a normal map from a height map.
Also includes a thin CLI wrapper.
Example Library Usage
let img = open?;
let normal_map = map_normals;
normal_map.save?;
let img = open?;
let strength = 3.14;
let normal_map = map_normals_with_strength;
normal_map.save?;
For a fully executable example, see src/main.rs.
CLI Wrapper
Help String
USAGE:
normal-heights [OPTIONS] <INPUT> <OUTPUT>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-s, --strength <strength>
Strength of the resulting normal map. [default: 6.0]
ARGS:
<INPUT> Input height map image file.
<OUTPUT> Filename to write the normal map to.
Example Usage
Supported Image Formats
See Image crate, version 0.23.7.
Example Output
Misc shapes:
Input:
Output (strength 3.14):
Output (strength 8):
World:
Input:
Output (default strength 6):