faux global illumination impl

This commit is contained in:
minjaesong
2022-02-21 11:01:27 +09:00
parent 7bec4c29af
commit 9659ef3a5f
4 changed files with 66 additions and 66 deletions

View File

@@ -208,6 +208,8 @@ class BlockCodex {
prop.dynamicLuminosityFunction = record.intVal("dlfn")
prop.reflectance = record.floatVal("refl")
blockProps[prop.id] = prop
printdbg(this, "Setting prop ${prop.id} ->>\t${prop.nameKey}\tsolid:${prop.isSolid}")

View File

@@ -92,6 +92,8 @@ class BlockProp {
var material: String = ""
var reflectance = 0f // the exact colour of the reflected light depends on the texture
@Transient var rngBase0 = Math.random().toFloat() // initial cycle phase (xxxxFuncX)
@Transient var rngBase1 = Math.random().toFloat() // flicker P0, etc
@Transient var rngBase2 = Math.random().toFloat() // flicker P1, etc