visual-song 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -432,8 +432,10 @@ const VisualSong = /*#__PURE__*/ forwardRef(function VisualSong({ style, backgro
|
|
|
432
432
|
} else {
|
|
433
433
|
canvas.style.setProperty("width", "100%");
|
|
434
434
|
canvas.style.setProperty("height", "100%");
|
|
435
|
-
//
|
|
436
|
-
|
|
435
|
+
// 캔버스는 DPR배 해상도로 그리지만 gl_PointSize 에 DPR 을 곱하지 않는다. 셰이더 프롬프트가
|
|
436
|
+
// 점 크기를 resolution.y(디바이스 px)에 비례하게 쓰라고 하므로, 여기서 DPR 을 또 곱하면
|
|
437
|
+
// 레티나에서 2배, DPR 3 폰에서 3배로 커진다(2026-10 POINTS 보드 50개 렌더 비교로 확인).
|
|
438
|
+
_resizeRenderer(window.devicePixelRatio * wrapperWidth, window.devicePixelRatio * wrapperHeight, 1);
|
|
437
439
|
}
|
|
438
440
|
}
|
|
439
441
|
function destroy() {
|