diff --git a/batch.go b/batch.go index af2c943cad473e5ab45164e5878945fbb8956234..09c25f5ac3914cd33fe55e4cbf386fc6ff76bb0f 100644 --- a/batch.go +++ b/batch.go @@ -30,7 +30,7 @@ var _ BasicTarget = (*Batch)(nil) func NewBatch(container Triangles, pic Picture) *Batch { return &Batch{ cont: Drawer{Triangles: container, Picture: pic}, - mat: ZM, + mat: IM, col: NRGBA{1, 1, 1, 1}, } } diff --git a/geometry.go b/geometry.go index 99504c10e7e9292d0fd3716dff6d0bdfa87abd31..5dfd58c14ebc5b422354f2d691247325456747f3 100644 --- a/geometry.go +++ b/geometry.go @@ -230,8 +230,8 @@ func (r Rect) Contains(u Vec) bool { // vertically and then rotates everything by 90 degrees around the origin. type Matrix [9]float64 -// ZM stands for Zero-Matrix which is the identity matrix. Does nothing, no transformation. -var ZM = Matrix(mgl64.Ident3()) +// IM stands for Zero-Matrix which is the identity matrix. Does nothing, no transformation. +var IM = Matrix(mgl64.Ident3()) // Move moves everything by the delta vector. func (m Matrix) Move(delta Vec) Matrix { diff --git a/graphics.go b/graphics.go index f4023a5c0374d31e1c0caf7d636306d35bfc1e93..b6812a41e6753ac1e4c07185ae2c92d06c5ea0fe 100644 --- a/graphics.go +++ b/graphics.go @@ -109,7 +109,7 @@ func NewIMDraw(pic Picture) *IMDraw { d: Drawer{Triangles: tri, Picture: pic}, } im.Precision(64) - im.SetMatrix(ZM) + im.SetMatrix(IM) im.SetColorMask(NRGBA{1, 1, 1, 1}) return im }