From afa7542ea84e607014dcb9ad7fe0ae648ce725c5 Mon Sep 17 00:00:00 2001 From: Otto Rottier Date: Tue, 17 Nov 2026 19:56:59 +0100 Subject: [PATCH] Fix source to listener vector calculation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A vector from A to B is B − A. This fixes the pseudocode to make it correspond to the normative text --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index 60d6dbfc3..3b4cf650e 100644 --- a/index.bs +++ b/index.bs @@ -13468,7 +13468,7 @@ function coneGain() { const listenerPosition = new Vec3(listener.positionX.value, listener.positionY.value, listener.positionZ.value); - const sourceToListener = sourcePosition.diff(listenerPosition).normalize(); + const sourceToListener = listenerPosition.diff(sourcePosition).normalize(); const normalizedSourceOrientation = sourceOrientation.normalize();