-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LittleKt rendering screen upside down. #235
Comments
Here is the repo: https://github.com/ValleyDragon888/minimalreproductiveexample |
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 |
For some reason if you don't do
batch.use(camera.viewProjection) {}
and instead usebatch.use() {}
orbatch.begin() // Code using batch batch.end()
it 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.
The text was updated successfully, but these errors were encountered: