From 27e9b1cb15dcfd03295231e98636b6c94789ee68 Mon Sep 17 00:00:00 2001 From: Aaron Griffith Date: Mon, 27 Sep 2010 20:31:31 -0400 Subject: [PATCH] added (commented out, for now) night render code --- chunk.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chunk.py b/chunk.py index a2e314f..c7f538e 100644 --- a/chunk.py +++ b/chunk.py @@ -43,7 +43,10 @@ def get_lighting_coefficient(skylight, blocklight): between 0.0 (fully lit) and 1.0 (fully black) that can be used as an alpha value for a blend with a black source image. It mimics Minecraft lighting calculations.""" + # Daytime return 1.0 - pow(0.8, 15 - max(blocklight, skylight)) + # Nighttime + #return 1.0 - pow(0.8, 15 - max(blocklight, skylight - 11)) def get_lvldata(filename): """Takes a filename and returns the Level struct, which contains all the