Skip to content

Commit

Permalink
Rename colour
Browse files Browse the repository at this point in the history
  • Loading branch information
pskelton committed Jul 31, 2024
1 parent 1141b13 commit 8b129f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Engine/Graphics/LightmapBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Color GetActorTintColor(int max_dimm, int min_dimm, float distance, int bNoLight
if (!engine->IsUnderwater()) {
return Color(255 - dimminglevel, 255 - dimminglevel, 255 - dimminglevel);
} else {
Color sea = colorTable.GreenishCyan;
Color sea = colorTable.Topaz;
float col = (255 - dimminglevel) * 0.0039215689f;
int red = static_cast<int>(floorf(col * sea.r + 0.5f));
int grn = static_cast<int>(floorf(col * sea.g + 0.5f));
Expand Down
2 changes: 1 addition & 1 deletion src/Library/Color/ColorTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ColorTable {
const Color MediumRed = Color(200, 0, 0); // #C80000
const Color MediumBlue = Color(0, 0, 200); // #0000C8
const Color OliveDrab = Color(92, 143, 37); // #5C8F25
const Color GreenishCyan = Color(16, 194, 153); // #10C299
const Color Topaz = Color(16, 194, 153); // #10C299
};

inline constexpr ColorTable colorTable;

0 comments on commit 8b129f6

Please sign in to comment.