minor change
This commit is contained in:
parent
2d1f61f746
commit
cfaff8c0cb
|
@ -254,12 +254,15 @@ func (txt *Text) Draw(t pixel.Target) {
|
||||||
if txt.dirty {
|
if txt.dirty {
|
||||||
txt.trans.SetLen(txt.tris.Len())
|
txt.trans.SetLen(txt.tris.Len())
|
||||||
txt.trans.Update(&txt.tris)
|
txt.trans.Update(&txt.tris)
|
||||||
|
|
||||||
for i := range txt.trans {
|
for i := range txt.trans {
|
||||||
txt.trans[i].Position = txt.mat.Project(txt.trans[i].Position)
|
txt.trans[i].Position = txt.mat.Project(txt.trans[i].Position)
|
||||||
txt.trans[i].Color = txt.trans[i].Color.Mul(txt.col)
|
txt.trans[i].Color = txt.trans[i].Color.Mul(txt.col)
|
||||||
}
|
}
|
||||||
|
|
||||||
txt.transD.Dirty()
|
txt.transD.Dirty()
|
||||||
txt.dirty = false
|
txt.dirty = false
|
||||||
}
|
}
|
||||||
|
|
||||||
txt.transD.Draw(t)
|
txt.transD.Draw(t)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue