Vixen
02b45cc4
csharp
public readonly record struct SkyParameters

The atmosphere, as the three numbers that decide what a daylight sky looks like.

Read the guide page for this →

Remarks

Turbidity is the knob that moves the look most and the one whose name says least. Raising it widens the sun's aureole, desaturates the blue and brings the horizon up — which is haze, and which reads as distance.

Fields and properties (3)

  • public Vector3 SunDirection

    Which way the sun's light travels — toward the scene, the same sense Direction has. Normalised on use.

  • public float Turbidity

    How much haze there is: the ratio of total to purely molecular optical thickness. 2 is an exceptionally clear day, 3 a clear one, 6 hazy, 10 the sky over a city in summer.

  • public float GroundAlbedo

    What the ground below the horizon reflects, 0 to 1. Not part of the daylight model — it is what the lower hemisphere of a baked cube is filled with, and it is the difference between a scene with a bounce off the floor and one lit from above only.

Methods (1)

  • public SkyParameters(Vector3 SunDirection, float Turbidity = 3, float GroundAlbedo = 0.15)

    The atmosphere, as the three numbers that decide what a daylight sky looks like.

Used by (3)

  • ArenaFrameThirdPersonShooter
  • PhysicalSkyVixen.Rendering
  • PhysicalSkyTestsVixen.Rendering.Tests