mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
Solari traces a mesh in one layout, tangents included, so every traced mesh without its own had MikkTSpace's made for it, in one system on one thread. Solari's shader reads a tangent for one thing, a normal map (vendor/bevy_solari scene/bindings.wesl). A mesh whose material has none now gets a unit vector across each normal, which costs nothing. A sample of a ray-traced render of a 2.5 s shot (Sticky Feet s04-stoop, 61 frames) had MikkTSpace as 182 of the 402 samples the first frame waited for its models. Before: the models' wait 744 ms, frame 0's sync 1093 ms. After, six runs: the wait 529 to 632 ms, frame 0's sync 656 to 802 ms. Its steady frames are unchanged (23 ms).