mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 12:34:05 +09:00
fixed a bug with canvas texture blending
This commit is contained in:
@@ -350,8 +350,8 @@ inline fun FrameBuffer.inActionF(camera: OrthographicCamera?, batch: SpriteBatch
|
||||
|
||||
|
||||
private val rgbMultLUT = Array(256) { y -> IntArray(256) { x ->
|
||||
val i = (x % 256) / 255f
|
||||
val j = (y / 256) / 255f
|
||||
val i = x / 255f
|
||||
val j = y / 255f
|
||||
(i * j).times(255f).roundToInt()
|
||||
} }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user