mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 19:14:05 +09:00
blockprop opacity to be actually cached
This commit is contained in:
@@ -16,13 +16,8 @@ class BlockProp {
|
||||
var shadeColG = 0f
|
||||
var shadeColB = 0f
|
||||
var shadeColA = 0f
|
||||
lateinit var shadeColor: Color
|
||||
|
||||
/**
|
||||
* @param opacity Raw RGB value, without alpha
|
||||
*/
|
||||
inline val opacity: Color
|
||||
get() = Color(shadeColR, shadeColG, shadeColB, shadeColA)
|
||||
lateinit var opacity: Color
|
||||
|
||||
var strength: Int = 0
|
||||
var density: Int = 0
|
||||
|
||||
Reference in New Issue
Block a user