mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Fix lighting
This commit is contained in:
parent
8141d9906a
commit
8775f9c145
2 changed files with 17 additions and 21 deletions
|
|
@ -187,10 +187,10 @@ static f32 sDepthZAdd = 0;
|
|||
static f32 sDepthZMult = 1;
|
||||
static f32 sDepthZSub = 0;
|
||||
|
||||
Vec3f gLightingDir;
|
||||
Color gLightingColor[2] = { { 255, 255, 255 }, { 255, 255, 255 } };
|
||||
Color gVertexColor = { 255, 255, 255 };
|
||||
Color gFogColor = { 255, 255, 255 };
|
||||
Vec3f gLightingDir = { 0.0f, 0.0f, 0.0f };
|
||||
Color gLightingColor[2] = { { 0xFF, 0xFF, 0xFF }, { 0xFF, 0xFF, 0xFF } };
|
||||
Color gVertexColor = { 0xFF, 0xFF, 0xFF };
|
||||
Color gFogColor = { 0xFF, 0xFF, 0xFF };
|
||||
f32 gFogIntensity = 1;
|
||||
|
||||
// 4x4 pink-black checkerboard texture to indicate missing textures
|
||||
|
|
|
|||
|
|
@ -630,6 +630,12 @@ void network_update(void) {
|
|||
}
|
||||
}
|
||||
|
||||
static inline void color_set(Color color, u8 r, u8 g, u8 b) {
|
||||
color[0] = r;
|
||||
color[1] = g;
|
||||
color[2] = b;
|
||||
}
|
||||
|
||||
void network_shutdown(bool sendLeaving, bool exiting, bool popup, bool reconnecting) {
|
||||
smlua_call_event_hooks(HOOK_ON_EXIT);
|
||||
|
||||
|
|
@ -674,23 +680,13 @@ void network_shutdown(bool sendLeaving, bool exiting, bool popup, bool reconnect
|
|||
gCurrActStarNum = 0;
|
||||
gCurrActNum = 0;
|
||||
gCurrCreditsEntry = NULL;
|
||||
vec3f_set(gLightingDir, 0xFF, 0xFF, 0xFF);
|
||||
gLightingColor[0][0] = 255;
|
||||
gLightingColor[0][1] = 255;
|
||||
gLightingColor[0][2] = 255;
|
||||
gLightingColor[1][0] = 255;
|
||||
gLightingColor[1][1] = 255;
|
||||
gLightingColor[1][2] = 255;
|
||||
gVertexColor[0] = 255;
|
||||
gVertexColor[1] = 255;
|
||||
gVertexColor[2] = 255;
|
||||
gSkyboxColor[0] = 255;
|
||||
gSkyboxColor[1] = 255;
|
||||
gSkyboxColor[2] = 255;
|
||||
gFogColor[0] = 255;
|
||||
gFogColor[1] = 255;
|
||||
gFogColor[2] = 255;
|
||||
gFogIntensity = 1;
|
||||
vec3f_set(gLightingDir, 0, 0, 0);
|
||||
color_set(gLightingColor[0], 0xFF, 0xFF, 0xFF);
|
||||
color_set(gLightingColor[1], 0xFF, 0xFF, 0xFF);
|
||||
color_set(gVertexColor, 0xFF, 0xFF, 0xFF);
|
||||
color_set(gSkyboxColor, 0xFF, 0xFF, 0xFF);
|
||||
color_set(gFogColor, 0xFF, 0xFF, 0xFF);
|
||||
gFogIntensity = 1.0f;
|
||||
gOverrideBackground = -1;
|
||||
gOverrideEnvFx = ENVFX_MODE_NO_OVERRIDE;
|
||||
gRomhackCameraAllowCentering = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue