Show / Hide Table of Contents

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
Object
Object
Component
Behaviour
MonoBehaviour
DaggerfallSky
Namespace: DaggerfallWorkshop
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
Type Description
Boolean
| Improve this Doc View Source

imgFile

Declaration
public ImgFile imgFile
Field Value
Type Description
ImgFile
| Improve this Doc View Source

IsNight

Declaration
public bool IsNight
Field Value
Type Description
Boolean
| Improve this Doc View Source

LocalPlayerGPS

Declaration
public PlayerGPS LocalPlayerGPS
Field Value
Type Description
PlayerGPS
| Improve this Doc View Source

MaxTimeScale

Declaration
public static float MaxTimeScale
Field Value
Type Description
Single
| Improve this Doc View Source

ShowStars

Declaration
public bool ShowStars
Field Value
Type Description
Boolean
| Improve this Doc View Source

skyColors

Declaration
public DaggerfallSky.SkyColors skyColors
Field Value
Type Description
DaggerfallSky.SkyColors
| Improve this Doc View Source

SkyColorScale

Declaration
public float SkyColorScale
Field Value
Type Description
Single
| Improve this Doc View Source

SkyCurve

Declaration
public AnimationCurve SkyCurve
Field Value
Type Description
AnimationCurve
| Improve this Doc View Source

SkyFrame

Declaration
[Range(0F, 63F)]
public int SkyFrame
Field Value
Type Description
Int32
| Improve this Doc View Source

SkyIndex

Declaration
[Range(0F, 31F)]
public int SkyIndex
Field Value
Type Description
Int32
| Improve this Doc View Source

SkyTintColor

Declaration
public Color SkyTintColor
Field Value
Type Description
Color
| Improve this Doc View Source

WeatherStyle

Declaration
public WeatherStyle WeatherStyle
Field Value
Type Description
WeatherStyle

Properties

| Improve this Doc View Source

SkyCamera

Declaration
public Camera SkyCamera { get; }
Property Value
Type Description
Camera

Methods

| Improve this Doc View Source

SetSkyFogColor(DaggerfallSky.SkyColors)

Declaration
public void SetSkyFogColor(DaggerfallSky.SkyColors colors)
Parameters
Type Name Description
DaggerfallSky.SkyColors colors

Extension Methods

MBExtensions.Invoke(MonoBehaviour, Action, Single)
MBExtensions.Invoke<T>(MonoBehaviour, Action<T>, T, Single)
MBExtensions.Invoke<T1, T2>(MonoBehaviour, Action<T1, T2>, T1, T2, Single)
MBExtensions.Invoke<T1, T2, T3>(MonoBehaviour, Action<T1, T2, T3>, T1, T2, T3, Single)
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)
  • Improve this Doc
  • View Source
In This Article
  • Fields
    • AutoCameraSetup
    • imgFile
    • IsNight
    • LocalPlayerGPS
    • MaxTimeScale
    • ShowStars
    • skyColors
    • SkyColorScale
    • SkyCurve
    • SkyFrame
    • SkyIndex
    • SkyTintColor
    • WeatherStyle
  • Properties
    • SkyCamera
  • Methods
    • SetSkyFogColor(DaggerfallSky.SkyColors)
  • Extension Methods
Back to top Generated by DocFX