mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 18:44:05 +09:00
model improvements
This commit is contained in:
@@ -89,7 +89,7 @@ class Application(val WIDTH: Int, val HEIGHT: Int) : Game() {
|
|||||||
|
|
||||||
|
|
||||||
val tex = Texture(oneScreen)
|
val tex = Texture(oneScreen)
|
||||||
tex.setFilter(Texture.TextureFilter.Nearest, Texture.TextureFilter.Nearest)
|
tex.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear)
|
||||||
|
|
||||||
batch.inUse {
|
batch.inUse {
|
||||||
batch.draw(tex, hwf, 0f, hwf, hf)
|
batch.draw(tex, hwf, 0f, hwf, hf)
|
||||||
@@ -116,8 +116,8 @@ class Application(val WIDTH: Int, val HEIGHT: Int) : Game() {
|
|||||||
oneScreen.dispose()
|
oneScreen.dispose()
|
||||||
}
|
}
|
||||||
|
|
||||||
val outTexWidth = 256
|
val outTexWidth = 64
|
||||||
val outTexHeight = 256
|
val outTexHeight = 64
|
||||||
|
|
||||||
private fun Float.scaleFun() =
|
private fun Float.scaleFun() =
|
||||||
(1f - 1f / 2f.pow(this/6f)) * 0.97f
|
(1f - 1f / 2f.pow(this/6f)) * 0.97f
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ object DatasetOp {
|
|||||||
val entrysize = file.length().toInt() / 8
|
val entrysize = file.length().toInt() / 8
|
||||||
val fis = FileInputStream(file)
|
val fis = FileInputStream(file)
|
||||||
|
|
||||||
|
val inputbuf = ByteArray(8)
|
||||||
val ret = DoubleArray(entrysize) {
|
val ret = DoubleArray(entrysize) {
|
||||||
val inputbuf = ByteArray(8)
|
|
||||||
fis.read(inputbuf)
|
fis.read(inputbuf)
|
||||||
val rawnum = inputbuf.toLittleInt64()
|
val rawnum = inputbuf.toLittleInt64()
|
||||||
Double.fromBits(rawnum)
|
Double.fromBits(rawnum)
|
||||||
|
|||||||
Reference in New Issue
Block a user