mirror of https://github.com/bjornbytes/lovr.git
Fix horizontal rotation bug in Oculus spatializer
This commit is contained in:
parent
db28be591a
commit
9f96917d91
|
@ -245,8 +245,9 @@ static uint32_t oculus_tail(float* scratch, float* output, uint32_t frames) {
|
|||
|
||||
// Oculus math primitives
|
||||
|
||||
// Note: Mirror on YZ plane. There appears to be some difference between Lovr and Oculus Audio quaternions.
|
||||
static void oculusUnpackQuat(ovrQuatf* oq, float* lq) {
|
||||
oq->x = lq[0]; oq->y = lq[1]; oq->z = lq[2]; oq->w = lq[3];
|
||||
oq->x = lq[0]; oq->y = lq[1]; oq->z = -lq[2]; oq->w = -lq[3];
|
||||
}
|
||||
|
||||
static void oculusUnpackVec(ovrVector3f* ov, float* p) {
|
||||
|
|
Loading…
Reference in New Issue