0

Move the average lighting coeff to another function. Take the average over blockmap.

Fixes problems with stairs in night and lighting rendermode.
This commit is contained in:
Alejandro Aguilera
2011-06-19 01:10:03 +02:00
parent 312624e96c
commit fdadda0ea6
2 changed files with 107 additions and 45 deletions

View File

@@ -118,7 +118,7 @@ typedef struct {
} RenderModeLighting;
extern RenderModeInterface rendermode_lighting;
inline float get_lighting_coefficient(RenderModeLighting *self, RenderState *state,
int x, int y, int z, int *authoratative);
int x, int y, int z);
/* NIGHT */
typedef struct {