Skip to content

Commit

Permalink
gltfpack: Adjust help to more accurately document -vn
Browse files Browse the repository at this point in the history
Tangents don't need as much precision as normals so we're limiting them
to 8 bits; this allows higher-than-8 bit normals to preserve specular
highlights at a smaller incremental size impact.

Fixes zeux#674.
  • Loading branch information
zeux committed Apr 12, 2024
1 parent 2605089 commit 1060814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gltf/gltfpack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,7 @@ int main(int argc, char** argv)
fprintf(stderr, "\nVertex precision:\n");
fprintf(stderr, "\t-vp N: use N-bit quantization for positions (default: 14; N should be between 1 and 16)\n");
fprintf(stderr, "\t-vt N: use N-bit quantization for texture coordinates (default: 12; N should be between 1 and 16)\n");
fprintf(stderr, "\t-vn N: use N-bit quantization for normals and tangents (default: 8; N should be between 1 and 16)\n");
fprintf(stderr, "\t-vn N: use N-bit quantization for normals (default: 8; N should be between 1 and 16) and tangents (up to 8-bit)\n");
fprintf(stderr, "\t-vc N: use N-bit quantization for colors (default: 8; N should be between 1 and 16)\n");
fprintf(stderr, "\nVertex positions:\n");
fprintf(stderr, "\t-vpi: use integer attributes for positions (default)\n");
Expand Down

0 comments on commit 1060814

Please sign in to comment.