diff options
author | Chris Robinson <[email protected]> | 2018-03-24 07:02:27 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-03-24 07:02:27 -0700 |
commit | 413d55aaa547b3f602781ba235a629f3040d3e8d (patch) | |
tree | 0d30b50b8b7d8b0a8f854c47107ecd9e667fa53b | |
parent | 6d8062a2a78fdcb2f430874f6fbe2ec6e92bd1a9 (diff) |
Fix a couple comments about coordinate handedness
-rw-r--r-- | Alc/effects/reverb.c | 6 | ||||
-rw-r--r-- | examples/almultireverb.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index 3c5e5e96..0d486e63 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -1073,9 +1073,9 @@ static aluMatrixf GetTransformFromVector(const ALfloat *vec) /* Normalize the panning vector according to the N3D scale, which has an * extra sqrt(3) term on the directional components. Converting from OpenAL * to B-Format also requires negating X (ACN 1) and Z (ACN 3). Note however - * that the reverb panning vectors use right-handed coordinates, unlike the - * rest of OpenAL which use left-handed. This is fixed by negating Z, which - * cancels out with the B-Format Z negation. + * that the reverb panning vectors use left-handed coordinates, unlike the + * rest of OpenAL which use right-handed. This is fixed by negating Z, + * which cancels out with the B-Format Z negation. */ mag = sqrtf(vec[0]*vec[0] + vec[1]*vec[1] + vec[2]*vec[2]); if(mag > 1.0f) diff --git a/examples/almultireverb.c b/examples/almultireverb.c index 44398db3..a2587585 100644 --- a/examples/almultireverb.c +++ b/examples/almultireverb.c @@ -281,7 +281,7 @@ static void UpdateListenerAndEffects(float timediff, const ALuint slots[2], cons /* Calculate local_dir, which represents the listener-relative point to the * adjacent zone (should also include orientation). Because EAX Reverb uses - * right-handed coordinates instead of left-handed like the rest of OpenAL, + * left-handed coordinates instead of right-handed like the rest of OpenAL, * negate Z for the local values. */ local_dir[0] = portal_pos[0] - listener_pos[0]; |