SetSoundPan is clamped already
This commit is contained in:
parent
c6b34d2322
commit
9dde41204f
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ static void SetSoundPosition(Camera listener, Sound sound, Vector3 position, flo
|
|||
float pan = 0;
|
||||
if (RAYLIB_VERSION_MAJOR >= 6) {
|
||||
// -1.0 - 1.0
|
||||
pan = Clamp(Vector3DotProduct(normalizedDirection, right), -1.0f, 1.0f);
|
||||
pan = Vector3DotProduct(normalizedDirection, right);
|
||||
} else {
|
||||
// 0.0 - 1.0
|
||||
pan = 0.5f + 0.5f*Vector3DotProduct(normalizedDirection, right);
|
||||
|
|
|
|||
Loading…
Reference in a new issue