Skip to content

Commit

Permalink
Fixed #49 - Pads are too dark
Browse files Browse the repository at this point in the history
  • Loading branch information
HumanGamer committed May 23, 2021
1 parent 1e0a752 commit ad5a6f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion engine/lightingSystem/sgLightManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,13 @@ void LightManager::sgSetupLights(SceneObject* obj)
if (outside)
light.mDirection = sun->mDirection;
if (obj->receiveLMLighting)
light.mColor = ambientColor * 0.8;
light.mColor = ambientColor;// * 0.8f;
else
light.mColor = sun->mColor;
light.mAmbient = sun->mAmbient;
//light.mAmbient.red = sun->mAmbient.red * 0.346f;
//light.mAmbient.green = sun->mAmbient.green * 0.588f;
//light.mAmbient.blue = sun->mAmbient.blue * 0.070f;
}
else if (obj->receiveLMLighting)
{
Expand Down
9 changes: 5 additions & 4 deletions engine/sim/sceneObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1959,7 +1959,7 @@ void SceneObject::uninstallLights()
// - if an interior, which contains this object, moves then this value will be incorrect
bool SceneObject::getLightingAmbientColor(ColorF* col)
{
//#if YOU_ARE_INSANE
#if YOU_ARE_INSANE
AssertFatal(col != NULL, "SceneObject::getLightingAmbientColor: invalid color ptr");

const F32 cRayLength = 100.f; // down/up
Expand Down Expand Up @@ -2115,9 +2115,10 @@ bool SceneObject::getLightingAmbientColor(ColorF* col)
}

return(false);
//#endif
// *col = ColorF(1.0, 1.0, 1.0);
// return true;
#else
*col = ColorF(1.0, 1.0, 1.0);
return true;
#endif
}
Point3F SceneObject::getVelocity() const
{
Expand Down

0 comments on commit ad5a6f7

Please sign in to comment.