Add dynamic chunk lighting engine (vertical sky light + emissive blocks)

This commit is contained in:
Master290 2026-06-27 21:21:31 +03:00
parent 09a694daf5
commit e33370a049
5 changed files with 212 additions and 27 deletions

17
scratch.go Normal file
View file

@ -0,0 +1,17 @@
package main
import (
"encoding/json"
"fmt"
"os"
)
func main() {
f, _ := os.Open("generated/reports/blocks.json")
var data map[string]interface{}
json.NewDecoder(f).Decode(&data)
glowstone := data["minecraft:glowstone"]
b, _ := json.MarshalIndent(glowstone, "", " ")
fmt.Println("glowstone:", string(b))
}