Mini Galaxy Gen
Added flags to game manager and player settings to check tutorial status Created alternate galaxy generation process for tutorial
This commit is contained in:
parent
7cfc5cd04f
commit
b1bd89a687
224 changed files with 423 additions and 208 deletions
|
|
@ -87,11 +87,10 @@ public static class WeightedSampleElimination
|
|||
}, densityFunc, d_max);
|
||||
}
|
||||
|
||||
public static float2[] GeneratePoints(int count, Func<float2, float> density = null, Func<float2, float> envelope = null, Action<string> progressCallback = null, uint seed = 1337)
|
||||
public static float2[] GeneratePoints(int count, ref Random random, Func<float2, float> density = null, Func<float2, float> envelope = null, Action<string> progressCallback = null)
|
||||
{
|
||||
if (density == null) density = v => .5f;
|
||||
if (envelope == null) envelope = v => 1;
|
||||
var random = new Random(seed);
|
||||
var inputSamples = new float2[count * 8];
|
||||
var sample = 0;
|
||||
var accumulator = 0f;
|
||||
|
|
|
|||
Loading…
Reference in a new issue