1
0

Optimization in quaternion::rotationFromTo from Robert Eisele

Turns out we can avoid a square root and a division.
Patch comes even with proof: https://raw.org/proof/quaternion-from-two-vectors
(I also tested it a while and indeed got same results)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6511 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien
2023-07-30 16:34:24 +00:00
parent f7de9091a1
commit 2bfe7506c2
2 changed files with 5 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
--------------------------
Changes in 1.9 (not yet released)
- Optimize quaternion::rotationFromTo. Thanks @Robert Eisele for patch and proof (https://raw.org/proof/quaternion-from-two-vectors)
- Shader materials shows now how to pass material values.
In 1.8 we could still use gl_FrontMaterial, but that is no longer supported in shaders
- Get IMeshBuffer::append functions working for a few more cases and adapt interface so one can prevent the BoundingBox update.