Fix audioSource pan

This commit is contained in:
Joshua Granick
2016-06-14 08:03:02 -07:00
parent 6f9dda6f80
commit 7111b0747b

View File

@@ -698,7 +698,7 @@ class AudioSource {
#else
AL.distanceModel (AL.NONE);
AL.source3f (id, AL.POSITION, pan, 0, -1 * Math.sqrt (1 - Math.pow (pan, 2)));
AL.source3f (id, AL.POSITION, value, 0, -1 * Math.sqrt (1 - Math.pow (value, 2)));
return value;
#end