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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user