mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-10-29 02:43:37 +08:00
Revert "examples/shader: Rename ScreenSize -> ImageSize"
This reverts commit 3893f9cdbe.
Reason: The screen size and the image size can be different.
This commit is contained in:
@@ -122,9 +122,8 @@ func (g *Game) Draw(screen *ebiten.Image) {
|
||||
op.Uniforms = []interface{}{
|
||||
float32(g.time) / 60, // Time
|
||||
[]float32{float32(cx), float32(cy)}, // Cursor
|
||||
[]float32{float32(w), float32(h)}, // ImageSize
|
||||
[]float32{float32(w), float32(h)}, // ScreenSize
|
||||
}
|
||||
// All the image sizes are (w, h).
|
||||
op.Images[0] = gopherImage
|
||||
op.Images[1] = normalImage
|
||||
op.Images[2] = gopherBgImage
|
||||
|
||||
Reference in New Issue
Block a user