This commit is contained in:
minjaesong
2019-05-09 16:14:49 +09:00
parent dfdd0ef411
commit bda2f7ba82
2 changed files with 3 additions and 4 deletions

View File

@@ -16,8 +16,7 @@ class BlockProp {
var shadeColG = 0f
var shadeColB = 0f
var shadeColA = 0f
lateinit var opacity: Color
var opacity: Color = Color(0)
var strength: Int = 0
var density: Int = 0
@@ -36,7 +35,7 @@ class BlockProp {
var lumColG = 0f
var lumColB = 0f
var lumColA = 0f
lateinit var internalLumCol: Color
var internalLumCol: Color = Color(0)
/**
* @param luminosity

View File

@@ -213,7 +213,7 @@ object LightmapRenderer {
// set sunlight
sunLight.set(world.globalLight); sunLight.mul(DIV_FLOAT)
AppLoader.measureDebugTime("Renderer.Preload") {
AppLoader.measureDebugTime("Renderer.LightPreload") {
// this is to recycle pre-calculated lights and shades for all 4 rounds.
// the old code always re-calculates them (calls 'getLightsAndShades()') for every blocks for every round.
// the light source information can also be used to create no-op mask? I'm sceptical about that, there must