diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-10-04 00:26:59 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-10-04 00:26:59 +0900 |
| commit | 3c7fc9271cdaf7b8ee11609d3c4e73df7ba9e0d9 (patch) | |
| tree | cbb0e36093366f9071898aed17af6903d0089f1c /public/bluebey-studio/src/face.js | |
| parent | d871b2e093a70d5ee4e7c6c91f54f05c7422707d (diff) | |
bluebey-studio: 髪の模様の横位置を正面中央に修正
継ぎ目補正でキャンバスが artwork ウィンドウ(1024)より広くなったのに、正面をキャンバス中央としていたため、頭の模様が右へずれていた。正面をウィンドウ中央(512px)基準に直し、offsetX の効きも1:1にした。
Diffstat (limited to 'public/bluebey-studio/src/face.js')
| -rw-r--r-- | public/bluebey-studio/src/face.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/public/bluebey-studio/src/face.js b/public/bluebey-studio/src/face.js index de8a31c..273468a 100644 --- a/public/bluebey-studio/src/face.js +++ b/public/bluebey-studio/src/face.js @@ -262,10 +262,9 @@ export class Face { const layout = this.hairLayout; const ctx = this.hairCtx; ctx.clearRect(0, 0, layout.width, layout.height); - ctx.save(); - ctx.translate(layout.offsetX, layout.offsetY); + // `drawHeadCoverWrap` works in canvas coordinates (its x axis is the UV + // angle already normalised), so it is not shifted by the window offset. drawHeadCoverWrap(ctx, p.eyes.headMark ?? {}, layout); - ctx.restore(); this.hairTexture.needsUpdate = true; } |
