From 24cf5358632541668ee7f420e322c63365daa4c8 Mon Sep 17 00:00:00 2001 From: jiepengtan Date: Thu, 20 Jun 2024 14:54:18 +0800 Subject: [PATCH] invert y axis (ebiten use texture coord) --- spgdi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spgdi.go b/spgdi.go index b66cce37..80f9e0c9 100644 --- a/spgdi.go +++ b/spgdi.go @@ -135,7 +135,7 @@ func (p *spriteDrawInfo) updateMatrix() { img, centerX, centerY := c.needImage(p.sprite.g.fs) centerX += p.sprite.pivot.X - centerY += p.sprite.pivot.Y + centerY -= p.sprite.pivot.Y rect := image.Rectangle{} rect.Min.X = 0 rect.Min.Y = 0