mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 12:04:06 +09:00
simple hack for out-of-place render of terrain and lightmap
- Just made them not have negative value
This commit is contained in:
@@ -309,3 +309,4 @@ class GameWorld(val width: Int, val height: Int) {
|
||||
}
|
||||
|
||||
infix fun Int.fmod(other: Int) = Math.floorMod(this, other)
|
||||
infix fun Float.fmod(other: Float) = if (this >= 0f) this % other else (this % other) + other
|
||||
|
||||
Reference in New Issue
Block a user