You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: PapyrusCs/Program.cs
+19-5
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,13 @@ public enum Strategy
22
22
ParallelFor,
23
23
}
24
24
25
+
publicenumRenderMode
26
+
{
27
+
Basic,
28
+
Heightmap,
29
+
}
30
+
31
+
25
32
publicclassOptions
26
33
{
27
34
@@ -52,6 +59,12 @@ public class Options
52
59
[Option("threads",Required=false,HelpText="Set maximum of used threads",Default=16)]
53
60
publicintMaxNumberOfThreads{get;set;}
54
61
62
+
[Option('j',"brillouinj",Required=false,HelpText="Sets factor j for heightmap brightness formular brillouin",Default=10000f)]
63
+
publicfloatBrillouinJ{get;set;}
64
+
65
+
[Option('r',"rendermode",Required=false,HelpText="RenderMode: Basic - Render without brightness adjustment.\nHeightmap - Render with brightness adjustment based on.height of block",Default=RenderMode.Heightmap)]
66
+
publicRenderModeRenderMode{get;set;}
67
+
55
68
publicboolLoaded{get;set;}
56
69
publicint?LimitXLow{get;set;}
57
70
publicint?LimitXHigh{get;set;}
@@ -87,7 +100,7 @@ static int Main(string[] args)
87
100
options.LimitXHigh=splittedLimit[1];
88
101
}
89
102
}
90
-
catch(Exceptionex)
103
+
catch(Exception)
91
104
{
92
105
Console.WriteLine($"The value '{options.LimitX}' for the LimitZ parameter is not valid. Try something like -10,10");
93
106
return-1;
@@ -104,7 +117,7 @@ static int Main(string[] args)
104
117
options.LimitZHigh=splittedLimit[1];
105
118
}
106
119
}
107
-
catch(Exceptionex)
120
+
catch(Exception)
108
121
{
109
122
Console.WriteLine($"The value '{options.LimitZ}' for the LimitZ parameter is not valid. Try something like -10,10");
110
123
return-1;
@@ -217,8 +230,9 @@ static int Main(string[] args)
217
230
RenderCoords=options.RenderCoords,
218
231
MaxNumberOfThreads=options.MaxNumberOfThreads,
219
232
Keys=keys64,
220
-
YMax=options.LimitY
221
-
};
233
+
YMax=options.LimitY,
234
+
BrillouinJ=options.BrillouinJ
235
+
};
222
236
strat.InitialDiameter=extendedDia;
223
237
strat.InitialZoomLevel=(int)zoom;
224
238
strat.World=world;
@@ -247,7 +261,7 @@ static int Main(string[] args)
0 commit comments