From 43f4245cac1f15ee3a8faf9d7eb2d9e4291dc482 Mon Sep 17 00:00:00 2001 From: Kirigaya <1193466151@qq.com> Date: Fri, 22 Nov 2024 22:23:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B8=B2=E6=9F=93=E6=95=88?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/test.view | Bin 7886 -> 8174 bytes src/hook/wave-view/render-utils.js | 2 +- src/hook/wave-view/render-wave.js | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/test.view b/public/test.view index 56934feb28800b890e357ae15a9b276d3a992405..86d308b66ed311c63052a364ed067f6cec4c7ea7 100644 GIT binary patch delta 298 zcmX?S`_7*Cojd~rOL<~hYB56+=SE(64#tAX6F96VXK?T_s!pz9lILb*00CwrQwETX zCqz_~2`XyF5CLQ{>y z<{unyg!Gt=%ovt|j4jSg&r8hl%uCB>aDf}d3S@zeVamzO%Z8ZC0uq?q$Q#EA)KrpK zlFCpy`K`2^@C3`b4vZP8nduoNKwS(B7nmnZmXmSk6{zq}ODj$-VaNb_U~-v^x`04_ rPD%u_;6|BZsrbE1c*1iG92h~8!O4j^sSHq|$#$|@jCq?gWm6de$5Btx delta 215 zcmaE7f6kWooE!rKOL<~hYB9qTj*YzX9E|ak7jjrn&fwsi_)?6;$dm!Z_ni1rl#hX> zEHkydnBlz;0|T?ciJn(QX)F34EnpO#jfTEeh}%dx}0u*_ldELn9C#{8U=2y}^y lvc*!1Kex&6=oNARD+o?b%t>W{3Qdla(_)O>+$opJ2mpn~L-GIs diff --git a/src/hook/wave-view/render-utils.js b/src/hook/wave-view/render-utils.js index 0232451..1262179 100644 --- a/src/hook/wave-view/render-utils.js +++ b/src/hook/wave-view/render-utils.js @@ -140,7 +140,7 @@ const ladderAnalog_GL_WidthShifts = new Float32Array([ ]); -const lineAnalog_WidthShift = 0.0015; +const lineAnalog_WidthShift = 0.002; const lineAnlog_GL_WidthShifts = new Float32Array([ 0, lineAnalog_WidthShift, // 0 - lineAnalog_WidthShift, lineAnalog_WidthShift, // 1 diff --git a/src/hook/wave-view/render-wave.js b/src/hook/wave-view/render-wave.js index e1651cb..77cb4e1 100644 --- a/src/hook/wave-view/render-wave.js +++ b/src/hook/wave-view/render-wave.js @@ -35,7 +35,7 @@ class WebGL2WaveRender { const gl = canvas.getContext('webgl2', { premultipliedAlpha: false, alpha: true, - antialias: false, + antialias: true, depth: false }); this.webglLocation = this.initProgram(gl); @@ -507,7 +507,7 @@ class WebGL2WaveRender { // 如果是 vec,根据设定的渲染模式和进行设置 const vecRenderModal = _this.getVecRenderModal(globalLookup, signal.link); if (vecRenderModal === 0) { - // 普通数字渲染模式、 + // 普通数字渲染模式 gl.uniform2fv(webglLocation.widthShifts, gl_WidthShifts); gl.uniform2fv(webglLocation.shifts, gl_Shifts_for_bar); gl.bindVertexArray(signalItem.lineVao);