Square brackets were missing when creating a Float32Array, causing a
"RangeError" at runtime when trying to set values into a vec3.
The specific error was "Uncaught RangeError: Invalid typed array length", which just seems to be because the 3 arg version of the Float32Array constructor expects the first argument to be the length, which the code tries to set as a float value.
Square brackets were missing when creating a Float32Array, causing a "RangeError" at runtime when trying to set values into a vec3.
The specific error was "Uncaught RangeError: Invalid typed array length", which just seems to be because the 3 arg version of the Float32Array constructor expects the first argument to be the length, which the code tries to set as a float value.