Empeld
Empeld plugin documentation.
essentials.Environment.Sky.CloudLayer Class Reference
Inheritance diagram for essentials.Environment.Sky.CloudLayer:
pluginbase.Objects.World.Environment.Sky.SkyLayerBase pluginbase.Objects.World.Environment.ISkyLayer pluginbase.Objects.World.Environment.IEnvironmentSimulatable

Public Member Functions

 CloudLayer ()
 
override void Simulate (double time, double x, double y, double z)
 Simulate the environment with the time, and an x/y/z More...
 
- Public Member Functions inherited from pluginbase.Objects.World.Environment.Sky.SkyLayerBase
virtual Rgba DirectionalColor (float x, float y, float z)
 Get the color at a direction More...
 

Properties

IResourceResolver ResourceResolver [get, set]
 
override SkyLayerRenderMode RenderMode [get]
 
override string Resource [get]
 
override float TextureScale [get]
 
override float CameraAdjustmentRatio [get]
 
override int Layer [get]
 
override Rgba Color [get]
 
override bool ReceivesLight [get]
 
override Vector3 Direction [get]
 
- Properties inherited from pluginbase.Objects.World.Environment.Sky.SkyLayerBase
virtual SkyLayerRenderMode RenderMode [get]
 Gets the render mode. More...
 
virtual int Layer [get]
 Gets the layer the sky is drawn on More...
 
virtual Vector3 Direction [get]
 Gets the up-direction for the layer. This can be used to rotate a sky-sphere or position a shader value More...
 
virtual string Resource [get]
 Gets the resource. Either a texture, or shader. Only shaders support multiple resources More...
 
virtual Rgba Color [get]
 Overlay color More...
 
virtual float TextureScale [get]
 Gets the texture scale for render types that support it More...
 
virtual float CameraAdjustmentRatio [get]
 The amount the camera position adjusts the direction of the layer More...
 
virtual bool ReceivesLight [get]
 Gets a value indicating whether this pluginbase.Objects.World.Environment.Sky.SkyLayerBase receives light. More...
 
virtual bool CastsShadow [get]
 Gets a value indicating whether this instance can project on world. More...
 
virtual Rgba LightFilter [get]
 Gets a value to multiply incoming light by to simulate a layer filtering out sunlight More...
 
- Properties inherited from pluginbase.Objects.World.Environment.ISkyLayer
SkyLayerRenderMode RenderMode [get]
 Gets the render mode. More...
 
int Layer [get]
 Gets the layer the sky is drawn on More...
 
Vector3 Direction [get]
 Gets the up-direction for the layer. This can be used to rotate a sky-sphere or position a shader value More...
 
string Resource [get]
 Gets the resource. Either a texture, or shader. Only shaders support multiple resources More...
 
Rgba Color [get]
 Overlay color More...
 
float TextureScale [get]
 Gets the texture scale for render types that support it More...
 
float CameraAdjustmentRatio [get]
 The amount the camera position adjusts the direction of the layer More...
 
bool ReceivesLight [get]
 Gets a value indicating whether this pluginbase.Objects.World.Environment.ISkyLayer receives light. More...
 
bool CastsShadow [get]
 Gets a value indicating whether this instance can project on world. More...
 
Rgba LightFilter [get]
 Gets a value to multiply incoming light by to simulate a layer filtering out sunlight More...
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ CloudLayer()

essentials.Environment.Sky.CloudLayer.CloudLayer ( )
16  {
17  this.InjectDependencies();
18  }

Member Function Documentation

◆ Simulate()

override void essentials.Environment.Sky.CloudLayer.Simulate ( double  time,
double  x,
double  y,
double  z 
)
virtual

Simulate the environment with the time, and an x/y/z

Parameters
timeTime.
xX.
yY.
zZ.

Reimplemented from pluginbase.Objects.World.Environment.Sky.SkyLayerBase.

86  {
87  _offset = new Vector3((float)MExt.Fraction(time * 0.0001), (float)MExt.Fraction(time * 0.0001), 0f);
88  }
static float Fraction(float v)
Gets the fractional part of the value
Definition: MathExtensions.cs:247
Math extensions
Definition: MathExtensions.cs:7

Property Documentation

◆ CameraAdjustmentRatio

override float essentials.Environment.Sky.CloudLayer.CameraAdjustmentRatio
get

◆ Color

override Rgba essentials.Environment.Sky.CloudLayer.Color
get

◆ Direction

override Vector3 essentials.Environment.Sky.CloudLayer.Direction
get

◆ Layer

override int essentials.Environment.Sky.CloudLayer.Layer
get

◆ ReceivesLight

override bool essentials.Environment.Sky.CloudLayer.ReceivesLight
get

◆ RenderMode

override SkyLayerRenderMode essentials.Environment.Sky.CloudLayer.RenderMode
get

◆ Resource

override string essentials.Environment.Sky.CloudLayer.Resource
get

◆ ResourceResolver

IResourceResolver essentials.Environment.Sky.CloudLayer.ResourceResolver
getsetprotected

Attribute: Dependency

◆ TextureScale

override float essentials.Environment.Sky.CloudLayer.TextureScale
get

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