shader update to comply with GL 3.2

This commit is contained in:
minjaesong
2023-02-28 23:31:33 +09:00
parent 461c30e3e8
commit 09b79f7dd1
8 changed files with 173 additions and 62 deletions

View File

@@ -9,7 +9,7 @@ import com.badlogic.gdx.graphics.g2d.TextureRegion
*
* Created by minjaesong on 2021-12-13.
*/
class FlippingSpriteBatch : SpriteBatch() {
class FlippingSpriteBatch(size: Int = 1000) : SpriteBatch(size, DefaultGL32Shaders.createSpriteBatchShader()) {
/**
* This function draws the flipped version of the image by giving flipped uv-coord to the SpriteBatch