Revert "trying bytebuf and FloatVector"

This reverts commit 2941a0943f.
Benchmark showed no discernible differences.
This commit is contained in:
minjaesong
2023-01-18 20:32:22 +09:00
parent 2941a0943f
commit 66356fc0c9
14 changed files with 148 additions and 250 deletions

View File

@@ -1,16 +1,15 @@
package net.torvald.terrarum.gameactors
import jdk.incubator.vector.FloatVector
import net.torvald.gdx.graphics.VectorArray
import net.torvald.gdx.graphics.Cvec
/**
* Lightbox is defined based on pixelwise position in the world!
*/
class Lightbox() {
var hitbox: Hitbox = Hitbox(0.0,0.0,0.0,0.0)
var light: FloatVector = FloatVector.broadcast(VectorArray.SPECIES, 0f)
var light: Cvec = Cvec()
constructor(hitbox: Hitbox, light: FloatVector) : this() {
constructor(hitbox: Hitbox, light: Cvec) : this() {
this.hitbox = hitbox
this.light = light
}