mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 04:24:05 +09:00
simplified the tiling shader a bit
This commit is contained in:
@@ -152,8 +152,8 @@ object GlslTilingTest : ApplicationAdapter() {
|
||||
shader.setUniformf("tilesInAxes", tilesInHorizontal, tilesInVertical)
|
||||
shader.setUniformf("cameraTranslation", cameraX, cameraY)
|
||||
shader.setUniformi("tileSizeInPx", 16)
|
||||
shader.setUniformi("tilesInAtlas", 256, 256) //depends on the tile atlas
|
||||
shader.setUniformi("atlasTexSize", 4096, 4096) //depends on the tile atlas
|
||||
shader.setUniformf("tilesInAtlas", 256f, 256f) //depends on the tile atlas
|
||||
shader.setUniformf("atlasTexSize", 4096f, 4096f) //depends on the tile atlas
|
||||
tilesQuad.render(shader, GL20.GL_TRIANGLES)
|
||||
shader.end()
|
||||
tilesBufferAsTex.dispose()
|
||||
|
||||
Reference in New Issue
Block a user