Skip to content

Commit

Permalink
Return to flat HUD with privateAmbient fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rherriman committed Jan 11, 2024
1 parent 599d5c6 commit cea11a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/game/CAbstractPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,8 @@ CScaledBSP* CAbstractPlayer::DashboardPart(uint16_t id, Fixed scale) {
CScaledBSP* bsp = new CScaledBSP;
bsp->IScaledBSP(scale, id, this, 0);
bsp->ReplaceAllColors(ColorManager::getHUDColor());
bsp->privateAmbient = FIX1;
bsp->ignoreDirectionalLights = true;
bsp->isTransparent = true;
itsGame->hudWorld->AddPart(bsp);
return bsp;
Expand Down
2 changes: 1 addition & 1 deletion src/util/AvaraGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ void AvaraGLLightDefaults() {
AvaraGLSetLight(2, 0, 0, 0, DEFAULT_LIGHT_COLOR);
AvaraGLSetLight(3, 0, 0, 0, DEFAULT_LIGHT_COLOR);
AvaraGLSetAmbient(0.4f, DEFAULT_LIGHT_COLOR, Shader::World);
AvaraGLSetAmbient(0.4f, DEFAULT_LIGHT_COLOR, Shader::HUD);
AvaraGLSetAmbient(0.7f, DEFAULT_LIGHT_COLOR, Shader::HUD);
}

void SetTransforms(CBSPPart *part, Shader shader) {
Expand Down

0 comments on commit cea11a4

Please sign in to comment.