Table of Contents

Class LightingSystem

Namespace
KSP.Rendering
Assembly
Assembly-CSharp.dll
public class LightingSystem : KerbalMonoBehaviour
Inheritance
LightingSystem
Inherited Members
Extension Methods

Constructors

LightingSystem()

public LightingSystem()

Fields

AtmosphereScatterManager

public AtmosphereScatterManager AtmosphereScatterManager

Field Value

AtmosphereScatterManager

CelestialBodyGIProbeManager

public CelestialBodyGIProbeManager CelestialBodyGIProbeManager

Field Value

CelestialBodyGIProbeManager

CelestialBodyMapLighting

public CelestialBodyMapLighting CelestialBodyMapLighting

Field Value

CelestialBodyMapLighting

CelestialBodyStarManager

public CelestialBodyStarManager CelestialBodyStarManager

Field Value

CelestialBodyStarManager

CubemapReflectionSystem

public CubemapReflectionSystem CubemapReflectionSystem

Field Value

CubemapReflectionSystem

DynamicAmbientLight

public DynamicAmbientLight DynamicAmbientLight

Field Value

DynamicAmbientLight

GraphicsManager

public GraphicsManager GraphicsManager

Field Value

GraphicsManager

LensFlareSystem

public CelestialBodyLensFlareSystem LensFlareSystem

Field Value

CelestialBodyLensFlareSystem

VolumeCloudManager

public VolumeCloudManager VolumeCloudManager

Field Value

VolumeCloudManager

Methods

CalculateObserverIntensity(string, Position, float, CelestialBodyLightingData)

public float CalculateObserverIntensity(string body, Position observerPos, float falloff, CelestialBodyLightingData lightData)

Parameters

body string
observerPos Position
falloff float
lightData CelestialBodyLightingData

Returns

float

CalculatePotentialColor(string, Position, CelestialBodyLightingData)

public Color CalculatePotentialColor(string body, Position observerPos, CelestialBodyLightingData lightData)

Parameters

body string
observerPos Position
lightData CelestialBodyLightingData

Returns

Color

Cleanup()

public void Cleanup()

CreateLocalSpaceLight(string, bool, CelestialBodyLightingData)

public Light CreateLocalSpaceLight(string name, bool isStar, CelestialBodyLightingData data)

Parameters

name string
isStar bool
data CelestialBodyLightingData

Returns

Light

CreateMapViewLight(string, CelestialBodyLightingData)

public Light CreateMapViewLight(string name, CelestialBodyLightingData data)

Parameters

name string
data CelestialBodyLightingData

Returns

Light

CreateOABEnvLight(string, CelestialBodyLightingData)

public LightingSystem.LayeredLight CreateOABEnvLight(string name, CelestialBodyLightingData data)

Parameters

name string
data CelestialBodyLightingData

Returns

LightingSystem.LayeredLight

CreateScaledSpaceLight(string, CelestialBodyLightingData)

public Light CreateScaledSpaceLight(string name, CelestialBodyLightingData data)

Parameters

name string
data CelestialBodyLightingData

Returns

Light

Divide(float, float)

public float Divide(float num, float denom)

Parameters

num float
denom float

Returns

float

GetCurrentStarLocalLight()

public Light GetCurrentStarLocalLight()

Returns

Light

GetCurrentStarName()

public string GetCurrentStarName()

Returns

string

GetCurrentStarScaledLight()

public Light GetCurrentStarScaledLight()

Returns

Light

GetRotatationOfLightToOABObserver()

public Quaternion GetRotatationOfLightToOABObserver()

Returns

Quaternion

GetSOIBodyName()

public string GetSOIBodyName()

Returns

string

GetSOIStarStatus()

public bool GetSOIStarStatus()

Returns

bool

Init(bool)

public void Init(bool previsScene)

Parameters

previsScene bool

OnGameStateChanged(GameState, GameState)

public void OnGameStateChanged(GameState previousState, GameState currentState)

Parameters

previousState GameState
currentState GameState

OnPrevisSceneStart()

public void OnPrevisSceneStart()

OnSOIEntered(string, bool, CelestialBodyRingGroup)

public void OnSOIEntered(string bodyEntered, bool isStar, CelestialBodyRingGroup ringGroup)

Parameters

bodyEntered string
isStar bool
ringGroup CelestialBodyRingGroup

RegisterEvents()

public void RegisterEvents()

RemoveEvents()

public void RemoveEvents()

RemoveFlightStarLight()

public void RemoveFlightStarLight()

SetSOIBodyName(string)

public void SetSOIBodyName(string name)

Parameters

name string

UpdateFlightStarLights(string, bool)

public void UpdateFlightStarLights(string body, bool isStar)

Parameters

body string
isStar bool

UpdateLightingSystem()

public void UpdateLightingSystem()