We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6e8234 commit 5d0b36fCopy full SHA for 5d0b36f
colors.cpp
@@ -44,8 +44,13 @@ void loadColors()
44
SETCOLORNOISE(WOOD, 157,128,79,255, 11);
45
SETCOLOR(6, 120,120,120,0);
46
SETCOLOR(7, 84,84,84,255);
47
- SETCOLOR(WATER, 38,92,225,36);
48
- SETCOLOR(STAT_WATER, 38,92,225,36);
+ if (g_NoWater) {
+ SETCOLOR(WATER, 255,255,255,0);
49
+ SETCOLOR(STAT_WATER, 255,255,255,0);
50
+ } else {
51
+ SETCOLOR(WATER, 38,92,225,36);
52
+ SETCOLOR(STAT_WATER, 38,92,225,36);
53
+ }
54
SETCOLOR(10, 255,90,0,255);
55
SETCOLOR(11, 255,90,0,255);
56
SETCOLORNOISE(SAND, 220,212,160,255, 14);
globals.cpp
@@ -15,6 +15,7 @@ bool g_Skylight = false;
15
int g_Noise = 0;
16
bool g_BlendAll = false;
17
bool g_Hell = false, g_ServerHell = false;
18
+bool g_NoWater = false;
19
20
bool g_UseBiomes = false;
21
uint64_t g_BiomeMapSize = 0;
globals.h
@@ -40,6 +40,7 @@ extern bool g_Skylight;
40
extern int g_Noise;
41
extern bool g_BlendAll; // If set, do not assume certain blocks (like grass) are always opaque
42
extern bool g_Hell, g_ServerHell; // rendering the nether
43
+extern bool g_NoWater; // render water clear
// For rendering biome colors properly, external png files are used
extern bool g_UseBiomes;
main.cpp
@@ -135,6 +135,8 @@ int main(int argc, char **argv)
135
g_Hell = true;
136
} else if (strcmp(option, "-end") == 0) {
137
end = true;
138
+ } else if (strcmp(option, "-nowater") == 0) {
139
+ g_NoWater = true;
140
} else if (strcmp(option, "-serverhell") == 0) {
141
g_ServerHell = true;
142
} else if (strcmp(option, "-biomes") == 0) {
@@ -1133,6 +1135,7 @@ void printHelp(char *binary)
1133
1135
" -hell render the hell/nether dimension of the given world\n"
1134
1136
" -end render the end dimension of the given world\n"
1137
" -serverhell force cropping of blocks at the top (use for nether servers)\n"
1138
+ " -nowater render map with water clear\n"
1139
" -texture NAME extract colors from png file 'NAME'; eg. terrain.png\n"
1140
" -biomes apply biome colors to grass/leaves; requires that you run\n"
1141
" Donkey Kong's biome extractor first on your world\n"
0 commit comments