Using THREE.Math.clamp instead of locally defined version.