Fog that computes a low-level volumetric fog
More...
Fog that computes a low-level volumetric fog
◆ AtmosphereVolumeFog()
essentials.Environment.Fog.AtmosphereVolumeFog.AtmosphereVolumeFog |
( |
IEnumerable< IOrbital > |
orbitals, |
|
|
double |
highZ = 0.0 , |
|
|
double |
lowZ = -10_000.0 |
|
) |
| |
19 _orbitals = orbitals.Where(x => x.HasEmittance).ToArray();
◆ Simulate()
override void essentials.Environment.Fog.AtmosphereVolumeFog.Simulate |
( |
double |
time, |
|
|
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
|
virtual |
Simulate the environment with the time, and an x/y/z
- Parameters
-
Reimplemented from essentials.Environment.Fog.AtmosphereFog.
35 base.Simulate(time, x, y, z);
36 _volumePower = 1f - Math.Min(1f, _orbitals.Sum(o => o.EmittanceDiffuse.Luminosity * Math.Max(0f, o.Direction.Z * 1.5f)));
◆ VolumeDensity
virtual float essentials.Environment.Fog.AtmosphereVolumeFog.VolumeDensity => 0.05f |
|
protected |
The documentation for this class was generated from the following file: