Sector Constellations
Generating links between zones within the sector using elimination algorithm with connectedness testing Improved sample elimination API - now accepts simple density function! Ported MIConvexHull library to single precision, Unity.Mathematics math Removed old galaxy generator (new code is much better!)
This commit is contained in:
parent
3f9af29843
commit
0f33e541c0
99 changed files with 668 additions and 6762 deletions
|
|
@ -54,6 +54,7 @@ public class SectorGenerationSettings
|
|||
public float NoiseGain;
|
||||
public float NoiseLacunarity;
|
||||
public float NoiseFrequency;
|
||||
public float Zoom = 1;
|
||||
|
||||
public float fBm(float2 p, int octaves)
|
||||
{
|
||||
|
|
@ -72,7 +73,7 @@ public class SectorGenerationSettings
|
|||
|
||||
public float CloudDensity(float2 uv)
|
||||
{
|
||||
float noise = fBm(uv + NoisePosition, 8);
|
||||
float noise = fBm(uv / Zoom + NoisePosition, 10);
|
||||
return pow(noise, CloudExponent) * CloudAmplitude;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue