From 3c7fc9271cdaf7b8ee11609d3c4e73df7ba9e0d9 Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Sun, 4 Oct 2026 00:26:59 +0900 Subject: bluebey-studio: 髪の模様の横位置を正面中央に修正 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 継ぎ目補正でキャンバスが artwork ウィンドウ(1024)より広くなったのに、正面をキャンバス中央としていたため、頭の模様が右へずれていた。正面をウィンドウ中央(512px)基準に直し、offsetX の効きも1:1にした。 --- public/bluebey-studio/src/face.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'public/bluebey-studio/src/face.js') 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; } -- cgit v1.3.1