in preparation of new demoworld creation for future version

This commit is contained in:
minjaesong
2023-10-04 17:34:16 +09:00
parent ad0c1d72f3
commit 652dfe39eb
9 changed files with 76 additions and 12 deletions

View File

@@ -6,6 +6,7 @@ package net.torvald.terrarum.blockproperties
object Block {
const val AIR = "basegame:0" // hard coded; this is the standard
const val UPDATE = "basegame:1" // hard coded
const val STONE = "basegame:16"
const val STONE_QUARRIED = "basegame:17"

View File

@@ -22,7 +22,7 @@ class BlockProp {
var shadeColB = 0f
var shadeColA = 0f
lateinit var opacity: Cvec
var opacity = Cvec()
fun getOpacity(channel: Int) = when (channel) {
0 -> shadeColR