Cargo Features

[dependencies]
bevy_mikktspace = { version = "0.17.0-dev", default-features = false, features = ["std", "corrected-edge-sorting", "corrected-vertex-welding"] }

This space is intentionally left blank

default = std

The std feature is set by default whenever bevy_mikktspace is added without default-features = false somewhere in the dependency tree.

std default
corrected-edge-sorting

The below features will cause the resulting values to differ from the original C implementation.

Corrects a sorting bug in the original C implementation. See https://github.com/mmikk/MikkTSpace/issues/5 for details

corrected-vertex-welding

Uses a BTreeMap to weld vertices which is guaranteed to use the smallest vertex indices. This handles NaN values differently to the C implementation, so will produce different results for poor geometry. For typical geometry, this should produce identical results.