simple hack for out-of-place render of terrain and lightmap

- Just made them not have negative value
This commit is contained in:
minjaesong
2017-09-14 02:13:37 +09:00
parent efe2e44957
commit f82eab9871
5 changed files with 20 additions and 12 deletions

View File

@@ -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