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.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  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
- // 캔버스가 DPR배 해상도이므로 gl_PointSize도 DPR을 곱해 CSS px 기준으로 맞춘다.
436
- _resizeRenderer(window.devicePixelRatio * wrapperWidth, window.devicePixelRatio * wrapperHeight, window.devicePixelRatio);
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() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "visual-song",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "visual-song core library",
5
5
  "author": "kunyoungparkk (rjsdud3263@gmail.com)",
6
6
  "license": "MIT",