import from file transform is incorrect, because it doesn't copy values before modifying them, so ends up using already processed values mid-computation for the remaining ones. In the past I had a reduced copy of m4 library in the WebWorker, so it worked correctly, but then I incorrectly simplified it and only tested scaling which still worked correctly. Examplehttps://github.com/TurboWarp/extensions/commit/d008f028a62b6c09738a83a519c10c76297a5862
The example projects weren't made for this PR and are the part of the new documentation.
transform direction from to
has to directly use 1 existing matrix instead of creating a new one, it ends up zero-ing out 13th-15th (12th-14th) elements of it which are responsible for offset. This block wasn't meant to have any side-effects on the input data. Example https://github.com/TurboWarp/extensions/commit/b1af7dbe10def059bb6829d183d54c8d82d82e4fKa
(ambient) tags instead ofKd
(diffuse) tags. Example https://github.com/TurboWarp/extensions/commit/b13092434f6fe01806a172f3416a0c09e47a7fe4The example projects weren't made for this PR and are the part of the new documentation.