new lighting wip

This commit is contained in:
minjaesong
2022-10-04 22:01:28 +09:00
parent 9091e6af00
commit aff64f6a8e
4 changed files with 39 additions and 56 deletions

View File

@@ -69,10 +69,10 @@ class BlockProp {
}
fun getLumCol(x: Int, y: Int, channel: Int): Float = if (dynamicLuminosityFunction == 0) {
baseLumCol.getElem(channel)
baseLumCol.lane(channel)
} else {
val offset = XXHash32.hashGeoCoord(x, y).fmod(BlockCodex.DYNAMIC_RANDOM_CASES)
BlockCodex[BlockCodex.tileToVirtual[id]!![offset]]._lumCol.getElem(channel)
BlockCodex[BlockCodex.tileToVirtual[id]!![offset]]._lumCol.lane(channel)
}
/**