Closed ValleyDragon888 closed 6 months ago
Here is the repo: https://github.com/ValleyDragon888/minimalreproductiveexample (I used it to quickly open a codespace)
This makes sense. OpenGL uses a y-up axis, by default. LittleKt uses a y-down axis. Without passing in the matrix to OpenGL, it'll render with its default Ortho identity matrix.
Edit: As I look into this more I think we could update the initial matrix (when one isn't passed in) used in SpriteBatch and flip it to render correctly the first time.
Nice. When will this make it into LittleKt?
It's set for 0.9.1
but can be used immediately if you use the SNAPSHOT.
For some reason if you don't do
batch.use(camera.viewProjection) {}
and instead usebatch.use() {}
orit renders the screen upside down. I'm not sure whether this is intended behaviour, or whether I'm misunderstanding, but here is a minimal reproductive example:
This is just the example code modified.