0

turned night into a lighting mode option, added 'night' builtin custom mode

This commit is contained in:
Aaron Griffith
2011-10-26 22:19:27 -04:00
parent 00f06e0499
commit 85da19b1a0
6 changed files with 70 additions and 117 deletions

View File

@@ -182,6 +182,7 @@ typedef struct {
float shade_strength;
int color_light;
int night;
} RenderModeLighting;
extern RenderModeInterface rendermode_lighting;
@@ -193,13 +194,6 @@ void get_lighting_color(RenderModeLighting *self, RenderState *state,
int x, int y, int z,
unsigned char *r, unsigned char *g, unsigned char *b);
/* NIGHT */
typedef struct {
/* inherits from lighting */
RenderModeLighting parent;
} RenderModeNight;
extern RenderModeInterface rendermode_night;
/* SMOOTH LIGHTING */
typedef struct {
/* inherits from lighting */