ebiten: Sparate textures from uniforms at DrawTrianglesWithShader

Updates #1193
Updates #1239
This commit is contained in:
Hajime Hoshi
2020-07-06 01:55:46 +09:00
parent 914eb093f8
commit d217bc6033
16 changed files with 143 additions and 185 deletions

View File

@@ -130,9 +130,7 @@ func (g *Game) Draw(screen *ebiten.Image) {
[]float32{float32(cx), float32(cy)}, // Cursor
}
if g.idx != 0 {
op.Uniforms = append(op.Uniforms,
gophersImage, // Image
)
op.Textures = append(op.Textures, gophersImage)
}
screen.DrawTrianglesWithShader(vs, is, s, op)