mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 02:24:05 +09:00
terrain atlas: added black patch
This commit is contained in:
Binary file not shown.
@@ -35,7 +35,7 @@ ivec2 getTileXY(int tileNumber) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int getTileFromColor(vec4 color) {
|
int getTileFromColor(vec4 color) {
|
||||||
return int(color.b * 255) + (int(color.g * 255) * 256) + (int(color.r * 255) * 65536);
|
return int(color.b * 255) | (int(color.g * 255) << 8) | (int(color.r * 255) << 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
|||||||
@@ -158,8 +158,9 @@ object GlslTilingTest : ApplicationAdapter() {
|
|||||||
tilesBufferAsTex.dispose()
|
tilesBufferAsTex.dispose()
|
||||||
|
|
||||||
|
|
||||||
cameraX += 160 * Gdx.graphics.deltaTime
|
cameraX = 6f
|
||||||
cameraY += 160 * Gdx.graphics.deltaTime
|
//cameraX += 160 * Gdx.graphics.deltaTime
|
||||||
|
//cameraY += 160 * Gdx.graphics.deltaTime
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun dispose() {
|
override fun dispose() {
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user