Improved Level Generator
New asteroid models Asteroid belts have a custom width curve = tighter belts Zone Generator uses color theory now Zone gravity well is much deeper, filled with ambient glow Gravity waves flow over time Fog follows gravity waves Gas Giant shader fixed, offsets distort albedo properly Fog sample distances follow exponential curve Fog noise offsets sampling position instead of subtracting density = more natural looking noise Fog brightness fades out at max view distance
This commit is contained in:
parent
1f90d3639a
commit
34e20c5488
679 changed files with 42717 additions and 209 deletions
|
|
@ -96,9 +96,10 @@ public static class UnityExtensions
|
|||
return tex;
|
||||
}
|
||||
|
||||
public static Gradient ToGradient(this float4[] keys)
|
||||
public static Gradient ToGradient(this float4[] keys, bool sharp = false)
|
||||
{
|
||||
var grad = new Gradient();
|
||||
grad.mode = sharp ? GradientMode.Fixed : GradientMode.Blend;
|
||||
grad.alphaKeys = new[] {new GradientAlphaKey(1, 0), new GradientAlphaKey(1, 1)};
|
||||
grad.colorKeys = keys.Select(k => new GradientColorKey(k.xyz, k.w)).ToArray();
|
||||
return grad;
|
||||
|
|
|
|||
Loading…
Reference in a new issue