A class in Root.Township, Features.World.Environmental.Atmosphere.
Atmosphere plugin for interiors such as basements: while it has priority, it blends the ambient light, fog colour and fog density to its own values. Client visuals.
Constructors
| Member | What it is |
|---|
InteriorFogAmbience() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
| Member | What it is |
|---|
private Color basementAmbience | Ambient colour used inside, default black. |
private Color basementFogColor | Fog colour used inside, default black. |
private float fogDensity | Fog density used inside, default 0.05. |
Properties
| Member | What it is |
|---|
override Color CurrentAmbience { get; } | The interior ambient colour, basementAmbience. |
override Color CurrentFog { get; } | The interior fog colour, basementFogColor. |
override float CurrentFogDensity { get; } | The interior fog density. |
Methods
| Member | What it is |
|---|
override void Disable() | Calls the base disable only. |
protected override void Enabled() | If this plugin has priority, blends ambience (or its override), fog colour and fog density to this plugin's values. |
protected override void Reenabled() | Blends the ambient colour back to this plugin's value if it has priority and no override is set. |