Skip to content

Commit

Permalink
fix: Color miss-swap
Browse files Browse the repository at this point in the history
  • Loading branch information
IMB11 committed Aug 9, 2024
1 parent 4c8ace7 commit e979861
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public static FogManager.FogSettings apply(float undergroundFactor, FogManager.F
Color belowColor = belowGroundColors.getNightColor();

float fogColorR = MathHelper.lerp(undergroundFactor, belowColor.red / 255f, settings.fogRed()),
fogColorG = MathHelper.lerp(undergroundFactor, belowColor.green / 255f, settings.fogRed()),
fogColorB = MathHelper.lerp(undergroundFactor, belowColor.blue / 255f, settings.fogGreen());
fogColorG = MathHelper.lerp(undergroundFactor, belowColor.green / 255f, settings.fogGreen()),
fogColorB = MathHelper.lerp(undergroundFactor, belowColor.blue / 255f, settings.fogBlue());

return new FogManager.FogSettings(settings.fogStart(), settings.fogEnd(), fogColorR, fogColorG, fogColorB);
}
Expand Down

0 comments on commit e979861

Please sign in to comment.