Empeld
Empeld plugin documentation.
essentials.Environment.BasicEnvironment Class Reference
Inheritance diagram for essentials.Environment.BasicEnvironment:
pluginbase.Objects.World.Environment.EnvironmentBase pluginbase.Objects.World.Environment.IEnvironment

Public Member Functions

 BasicEnvironment ()
 
override IOrbital [] CreateOrbitals ()
 Create all orbitals high up in the sky More...
 
override ISkyLayer [] CreateLayers ()
 Create all sky-layers More...
 
override IFog CreateFog ()
 Creates the fog. More...
 
override IFilter [] CreateFilters ()
 Creates the filters. More...
 
override IPrecipitation [] CreatePrecipitationSystems ()
 Create all precipitation systems More...
 
override IAtmosphere CreateAtmosphere ()
 Creates the world atmosphere More...
 

Public Attributes

override string LutTextureResource => this._resolver.Resolve("lut/daylight-64.png")
 
- Public Attributes inherited from pluginbase.Objects.World.Environment.EnvironmentBase
virtual string LutTextureResource => null
 

Properties

override Rgba SkyColor [get]
 
override Rgba WorldAmbient [get]
 
- Properties inherited from pluginbase.Objects.World.Environment.EnvironmentBase
virtual Rgba SkyColor [get]
 
virtual Rgba WorldAmbient [get]
 
- Properties inherited from pluginbase.Objects.World.Environment.IEnvironment
Rgba SkyColor [get]
 Gets the color of the sky. More...
 
Rgba WorldAmbient [get]
 Gets the world ambient lighting. More...
 
string LutTextureResource [get]
 Optional resource path to a 3D LUT texture More...
 

Additional Inherited Members

- Protected Member Functions inherited from pluginbase.Objects.World.Environment.EnvironmentBase
 EnvironmentBase ()
 Initializes a new instance of the pluginbase.Objects.World.Environment.EnvironmentBase class. More...
 

Detailed Description

Attribute: Environment("Basic", Author = "Pontoon City", Description = "Basic environment with sun and moon", IconPath="ui/icons/sun.png")

Constructor & Destructor Documentation

◆ BasicEnvironment()

essentials.Environment.BasicEnvironment.BasicEnvironment ( )
25  {
26  this.InjectDependencies();
27  _orbitals = new IOrbital[]
28  {
29  new Sun(3000f),
30  new Moon(3400f)
31  };
32  _fog = new AtmosphereVolumeFog(_orbitals, 10.0);
33  }
Fog that computes a low-level volumetric fog
Definition: AtmosphereVolumeFog.cs:10
the interface representing an orbital
Definition: IOrbital.cs:12

Member Function Documentation

◆ CreateAtmosphere()

override IAtmosphere essentials.Environment.BasicEnvironment.CreateAtmosphere ( )
virtual

Creates the world atmosphere

Returns
The atmosphere.

Reimplemented from pluginbase.Objects.World.Environment.EnvironmentBase.

70  {
71  return new SimpleAtmosphere();
72  }

◆ CreateFilters()

override IFilter [] essentials.Environment.BasicEnvironment.CreateFilters ( )
virtual

Creates the filters.

Returns
The filters.

Reimplemented from pluginbase.Objects.World.Environment.EnvironmentBase.

57  {
58  return new IFilter[]
59  {
60  new VignetteFilter()
61  };
62  }
Definition: VignetteFilter.cs:8
The post-process filter definition interface
Definition: IFilter.cs:10

◆ CreateFog()

override IFog essentials.Environment.BasicEnvironment.CreateFog ( )
virtual

Creates the fog.

Returns
The fog.

Reimplemented from pluginbase.Objects.World.Environment.EnvironmentBase.

52  {
53  return _fog;
54  }

◆ CreateLayers()

override ISkyLayer [] essentials.Environment.BasicEnvironment.CreateLayers ( )
virtual

Create all sky-layers

Returns
The layers.

Reimplemented from pluginbase.Objects.World.Environment.EnvironmentBase.

41  {
42  return new ISkyLayer[]
43  {
44  new StarLayer(),
45  new CloudLayer(),
46  new AtmosphereLayer(_orbitals),
47  new FogSkirt(_fog)
48  };
49  }
An interface representing the sky layer
Definition: ISkyLayer.cs:11
Definition: StarLayer.cs:8
Simple atmosphere layer that inspects orbitals and compares them to simulate atmospheric scattering ...
Definition: AtmosphereLayer.cs:14
Sky-layer Skirt that surroudns the atmosphere with a low-layer of fog Assumes Z-up ...
Definition: FogSkirt.cs:13
Definition: CloudLayer.cs:10

◆ CreateOrbitals()

override IOrbital [] essentials.Environment.BasicEnvironment.CreateOrbitals ( )
virtual

Create all orbitals high up in the sky

Returns
The orbitals.

Reimplemented from pluginbase.Objects.World.Environment.EnvironmentBase.

36  {
37  return _orbitals;
38  }

◆ CreatePrecipitationSystems()

override IPrecipitation [] essentials.Environment.BasicEnvironment.CreatePrecipitationSystems ( )
virtual

Create all precipitation systems

Returns
The precipitation systems.

Reimplemented from pluginbase.Objects.World.Environment.EnvironmentBase.

65  {
66  return null;
67  }

Member Data Documentation

◆ LutTextureResource

override string essentials.Environment.BasicEnvironment.LutTextureResource => this._resolver.Resolve("lut/daylight-64.png")

Property Documentation

◆ SkyColor

override Rgba essentials.Environment.BasicEnvironment.SkyColor
get

◆ WorldAmbient

override Rgba essentials.Environment.BasicEnvironment.WorldAmbient
get

The documentation for this class was generated from the following file: