From cc6a2f9cf14f384e984327559893a2d93bcb4421 Mon Sep 17 00:00:00 2001 From: Robert Salata Date: Fri, 28 Feb 2025 10:00:25 +0100 Subject: [PATCH] Fix normals Float32 precision loss in JS --- js/o3dgc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/o3dgc.js b/js/o3dgc.js index 790507f..c4cd858 100644 --- a/js/o3dgc.js +++ b/js/o3dgc.js @@ -2253,7 +2253,7 @@ var o3dgc = (function () { normalSize = ifs.GetNNormal() * 3; if (this.m_normalsSize < normalSize) { this.m_normalsSize = normalSize; - this.m_normals = new Float32Array(this.m_normalsSize); + this.m_normals = new Int32Array(this.m_normalsSize); } normals = this.m_normals; quantFloatArray = this.m_quantFloatArray;