Class DaggerfallSky
Implementation of Daggerfall's sky backgrounds. Works in both forward and deferred rendering paths.
Uses two cameras and OnPostRender in local camera for sky drawing (uses normal camera solid colour clear).
Sets own camera depth to MainCamera.depth-1 so sky is drawn first.
DO NOT ATTACH THIS SCRIPT TO MAINCAMERA GAMEOBJECT.
Attach to an empty GameObject or use the prefab provided.
Inheritance
DaggerfallSky
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(Camera))]
public class DaggerfallSky : MonoBehaviour
Fields
|
Improve this Doc
View Source
AutoCameraSetup
Declaration
public bool AutoCameraSetup
Field Value
|
Improve this Doc
View Source
imgFile
Declaration
Field Value
|
Improve this Doc
View Source
IsNight
Declaration
Field Value
|
Improve this Doc
View Source
LocalPlayerGPS
Declaration
public PlayerGPS LocalPlayerGPS
Field Value
|
Improve this Doc
View Source
MaxTimeScale
Declaration
public static float MaxTimeScale
Field Value
|
Improve this Doc
View Source
ShowStars
Declaration
Field Value
|
Improve this Doc
View Source
skyColors
Declaration
public DaggerfallSky.SkyColors skyColors
Field Value
|
Improve this Doc
View Source
SkyColorScale
Declaration
public float SkyColorScale
Field Value
|
Improve this Doc
View Source
SkyCurve
Declaration
public AnimationCurve SkyCurve
Field Value
|
Improve this Doc
View Source
SkyFrame
Declaration
[Range(0F, 63F)]
public int SkyFrame
Field Value
|
Improve this Doc
View Source
SkyIndex
Declaration
[Range(0F, 31F)]
public int SkyIndex
Field Value
|
Improve this Doc
View Source
SkyTintColor
Declaration
public Color SkyTintColor
Field Value
|
Improve this Doc
View Source
WeatherStyle
Declaration
public WeatherStyle WeatherStyle
Field Value
Properties
|
Improve this Doc
View Source
SkyCamera
Declaration
public Camera SkyCamera { get; }
Property Value
Methods
|
Improve this Doc
View Source
SetSkyFogColor(DaggerfallSky.SkyColors)
Declaration
public void SetSkyFogColor(DaggerfallSky.SkyColors colors)
Parameters
Extension Methods
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)