diff --git a/examples/36-sky/sky.cpp b/examples/36-sky/sky.cpp index 7c2d3bb98..a4896d8f5 100644 --- a/examples/36-sky/sky.cpp +++ b/examples/36-sky/sky.cpp @@ -287,11 +287,11 @@ namespace bx::sin(latitude) * bx::sin(m_delta) + bx::cos(latitude) * bx::cos(m_delta) * bx::cos(hh) ); - const bx::Quaternion rot0 = bx::rotateAxis(m_upDir, -azimuth); + const bx::Quaternion rot0 = bx::fromAxisAngle(m_upDir, -azimuth); const bx::Vec3 dir = bx::mul(m_northDir, rot0); const bx::Vec3 uxd = bx::cross(m_upDir, dir); - const bx::Quaternion rot1 = bx::rotateAxis(uxd, altitude); + const bx::Quaternion rot1 = bx::fromAxisAngle(uxd, altitude); m_sunDir = bx::mul(dir, rot1); } diff --git a/examples/common/bounds.cpp b/examples/common/bounds.cpp index 7c92cb3da..41a9bc723 100644 --- a/examples/common/bounds.cpp +++ b/examples/common/bounds.cpp @@ -1046,7 +1046,7 @@ Srt toSrt(const void* _mtx) void mtxFromSrt(float* _outMtx, const Srt& _srt) { - mtxQuat(_outMtx, _srt.rotation); + mtxFromQuaternion(_outMtx, _srt.rotation); store(&_outMtx[0], mul(load(&_outMtx[0]), _srt.scale.x) ); store(&_outMtx[4], mul(load(&_outMtx[4]), _srt.scale.y) );