Table of Contents

Class GraphicsManager

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

Constructors

GraphicsManager()

public GraphicsManager()

Fields

ActiveVegetationSystem

public VegetationSystemPro ActiveVegetationSystem

Field Value

VegetationSystemPro

BiomePhysicsMappingTable

public BiomePhysicsMapping BiomePhysicsMappingTable

Field Value

BiomePhysicsMapping

CelestialBodyProvider

public CelestialBodyProvider CelestialBodyProvider

Field Value

CelestialBodyProvider

ContextualFxSystem

public ContextualFxSystem ContextualFxSystem

Field Value

ContextualFxSystem

DecalSystem

public DecalSystem DecalSystem

Field Value

DecalSystem

GraphicsSettings

public GraphicsSettings GraphicsSettings

Field Value

GraphicsSettings

HighQualityPreset

public PresetQualityLevel HighQualityPreset

Field Value

PresetQualityLevel

LightingSystem

public LightingSystem LightingSystem

Field Value

LightingSystem

LowQualityPreset

public PresetQualityLevel LowQualityPreset

Field Value

PresetQualityLevel

MediumQualityPreset

public PresetQualityLevel MediumQualityPreset

Field Value

PresetQualityLevel

PQSGlobalSettings

public PQSGlobalSettings PQSGlobalSettings

Field Value

PQSGlobalSettings

PanelBlurSystem

public PanelBlurSystem PanelBlurSystem

Field Value

PanelBlurSystem

PerformanceQualityPreset

public PresetQualityLevel PerformanceQualityPreset

Field Value

PresetQualityLevel

PostProcessingSettings

public PostProcessingSettings PostProcessingSettings

Field Value

PostProcessingSettings

PostProcessingSystem

public PostProcessingSystem PostProcessingSystem

Field Value

PostProcessingSystem

PrevisCelestialBodyProvider

public PrevisCelestialBodyProvider PrevisCelestialBodyProvider

Field Value

PrevisCelestialBodyProvider

PrevisGame

public PrevisGameInstance PrevisGame

Field Value

PrevisGameInstance

QualityQualityPreset

public PresetQualityLevel QualityQualityPreset

Field Value

PresetQualityLevel

ReentryManager

public ReentryManager ReentryManager

Field Value

ReentryManager

RenderKitSettings

public RenderKitSettings RenderKitSettings

Field Value

RenderKitSettings

ShadowSystem

public ShadowSystem ShadowSystem

Field Value

ShadowSystem

celestialBodyBehaviors

public Dictionary<string, CelestialBodyBehavior> celestialBodyBehaviors

Field Value

Dictionary<string, CelestialBodyBehavior>

celestialBodyPrevisScene

public bool celestialBodyPrevisScene

Field Value

bool

flightLightingData

public Dictionary<string, LightData> flightLightingData

Field Value

Dictionary<string, LightData>

flightLoadedRingGroups

public Dictionary<string, CelestialBodyRingGroup> flightLoadedRingGroups

Field Value

Dictionary<string, CelestialBodyRingGroup>

flightRingGroupQueue

public Dictionary<string, List<CelestialBodyRingGroup>> flightRingGroupQueue

Field Value

Dictionary<string, List<CelestialBodyRingGroup>>

mapLightingData

public Dictionary<string, LightData> mapLightingData

Field Value

Dictionary<string, LightData>

mapRingGroupQueue

public Dictionary<string, List<CelestialBodyRingGroup>> mapRingGroupQueue

Field Value

Dictionary<string, List<CelestialBodyRingGroup>>

particleFieldQueue

public Dictionary<string, List<ParticleFieldRingData>> particleFieldQueue

Field Value

Dictionary<string, List<ParticleFieldRingData>>

qualityPresets

public Dictionary<string, PresetQualityLevel> qualityPresets

Field Value

Dictionary<string, PresetQualityLevel>

Properties

Initialized

public bool Initialized { get; }

Property Value

bool

LocalCameraClipPlaneManager

public CameraClipPlaneManager LocalCameraClipPlaneManager { get; }

Property Value

CameraClipPlaneManager

MainMenuCamera

public FlowCamera MainMenuCamera { get; }

Property Value

FlowCamera

Methods

AddFlightLightDataPrevis(string, bool, GameObject, CelestialBodyLightingData, CelestialBodyLensFlare, AtmosphereDataModelComponent)

public void AddFlightLightDataPrevis(string bodyName, bool isStar, GameObject instance, CelestialBodyLightingData lightingData, CelestialBodyLensFlare lensFlareData, AtmosphereDataModelComponent atmosphereData)

Parameters

bodyName string
isStar bool
instance GameObject
lightingData CelestialBodyLightingData
lensFlareData CelestialBodyLensFlare
atmosphereData AtmosphereDataModelComponent

ApplyQualityPreset()

public void ApplyQualityPreset()

CalculateAltitudeWeight(float, float, double, double, double)

public float CalculateAltitudeWeight(float a, float b, double innerAltitude, double outerAltitude, double altitude)

Parameters

a float
b float
innerAltitude double
outerAltitude double
altitude double

Returns

float

CalculateSourceStarDotProductForObserver()

public float CalculateSourceStarDotProductForObserver()

Returns

float

CalculateSourceStarDotProductForPosition(Position, string)

public float CalculateSourceStarDotProductForPosition(Position pos, string observedBody)

Parameters

pos Position
observedBody string

Returns

float

CalculateSourceStarTimeOfDayForObserver()

public float CalculateSourceStarTimeOfDayForObserver()

Returns

float

CalculateSourceStarTimeOfDayForPosition(Position, string)

public float CalculateSourceStarTimeOfDayForPosition(Position pos, string observedBody)

Parameters

pos Position
observedBody string

Returns

float

Cleanup()

public void Cleanup()

GetAltitudeAtPositionAndBody(Position, string)

public double GetAltitudeAtPositionAndBody(Position pos, string body = "")

Parameters

pos Position
body string

Returns

double

GetCelestialBodyContextMenuName()

public string GetCelestialBodyContextMenuName()

Returns

string

GetCelestialBodyGIProbeSHTerm(string)

public SphericalHarmonicsL2 GetCelestialBodyGIProbeSHTerm(string celestialBodyName)

Parameters

celestialBodyName string

Returns

SphericalHarmonicsL2

GetCurrentScaledUnityCamera()

public Camera GetCurrentScaledUnityCamera()

Returns

Camera

GetCurrentStarDirection()

public Vector GetCurrentStarDirection()

Returns

Vector

GetCurrentStarLocalLight()

public Light GetCurrentStarLocalLight()

Returns

Light

GetCurrentStarScaledLight()

public Light GetCurrentStarScaledLight()

Returns

Light

GetCurrentStarVisibility()

public double GetCurrentStarVisibility()

Returns

double

GetCurrentStarVisibility(string, Dictionary<string, double>)

public float GetCurrentStarVisibility(string starName, Dictionary<string, double> visibleBodies)

Parameters

starName string
visibleBodies Dictionary<string, double>

Returns

float

GetCurrentUnityCamera()

public Camera GetCurrentUnityCamera()

Returns

Camera

GetDesiredCursorLockMode(FullScreenMode)

public static CursorLockMode GetDesiredCursorLockMode(FullScreenMode fullscreenMode)

Parameters

fullscreenMode FullScreenMode

Returns

CursorLockMode

GetObservedBody()

public string GetObservedBody()

Returns

string

GetObservedPosition()

public Position GetObservedPosition()

Returns

Position

GetPhysicsFlightCameraEffectsSystem()

public CameraEffectsSystem GetPhysicsFlightCameraEffectsSystem()

Returns

CameraEffectsSystem

GetQualityPreset(string)

public PresetQualityLevel GetQualityPreset(string presetName)

Parameters

presetName string

Returns

PresetQualityLevel

GetSOIBody()

public CelestialBodyBehavior GetSOIBody()

Returns

CelestialBodyBehavior

GetSOIBodyCoreData()

public CelestialBodyCore GetSOIBodyCoreData()

Returns

CelestialBodyCore

GetSOIBodyPQS()

public PQS GetSOIBodyPQS()

Returns

PQS

GetScaledCloudDataModel(string)

public ScaledCloudDataModelComponent GetScaledCloudDataModel(string bodyName)

Parameters

bodyName string

Returns

ScaledCloudDataModelComponent

GetScaledSpaceOpaqueRenderers()

public List<Renderer> GetScaledSpaceOpaqueRenderers()

Returns

List<Renderer>

GetScaledSpaceTransparentRenderers()

public List<Renderer> GetScaledSpaceTransparentRenderers()

Returns

List<Renderer>

GetVisibleBodies(Position, bool, bool)

public Dictionary<string, double> GetVisibleBodies(Position pos, bool includeObserved = true, bool includeStar = true)

Parameters

pos Position
includeObserved bool
includeStar bool

Returns

Dictionary<string, double>

Init()

public void Init()

InitPrevis()

public void InitPrevis()

InitStartingBodyLighting(CelestialBodyComponent)

public void InitStartingBodyLighting(CelestialBodyComponent model)

Parameters

model CelestialBodyComponent

InvLerpDouble(double, double, double)

public double InvLerpDouble(double a, double b, double v)

Parameters

a double
b double
v double

Returns

double

IsPrevisSceneEnabled()

public bool IsPrevisSceneEnabled()

Returns

bool

OnCameraPQSChanged(MessageCenterMessage)

public void OnCameraPQSChanged(MessageCenterMessage msg)

Parameters

msg MessageCenterMessage

PostRenderCelestialBodyCubemap()

public void PostRenderCelestialBodyCubemap()

PostRenderObserverCubemap(ref Dictionary<string, float>)

public void PostRenderObserverCubemap(ref Dictionary<string, float> prevTransitionValues)

Parameters

prevTransitionValues Dictionary<string, float>

PreRenderCelestialBodyCubemap()

public void PreRenderCelestialBodyCubemap()

PreRenderObserverCubemap(float, ref Dictionary<string, float>)

public void PreRenderObserverCubemap(float value, ref Dictionary<string, float> prevTransitionValues)

Parameters

value float
prevTransitionValues Dictionary<string, float>

RegisterEvents()

public void RegisterEvents()

RemoveEvents()

public void RemoveEvents()

SetAntiAliasingLevel(int)

public void SetAntiAliasingLevel(int level)

Parameters

level int

SetCurrentStarVisibility(double)

public void SetCurrentStarVisibility(double visibility)

Parameters

visibility double

SetCurrentUnityCamera(Camera)

public void SetCurrentUnityCamera(Camera camera)

Parameters

camera Camera

SetObservedBody(string)

public void SetObservedBody(string name)

Parameters

name string

SetObserverPosition(Position)

public void SetObserverPosition(Position pos)

Parameters

pos Position

SetPhysicsFlightCameraEffectsSystem()

public void SetPhysicsFlightCameraEffectsSystem()

SetResolution(int, int, bool)

public static void SetResolution(int width, int height, bool isFullscreen)

Parameters

width int
height int
isFullscreen bool

SetResolution(int, int, FullScreenMode)

public static void SetResolution(int width, int height, FullScreenMode fullscreenMode)

Parameters

width int
height int
fullscreenMode FullScreenMode

UpdateCursorLockState(FullScreenMode, bool)

public static void UpdateCursorLockState(FullScreenMode fullscreenMode, bool force = false)

Parameters

fullscreenMode FullScreenMode
force bool

UpdateShadowConfigs()

public void UpdateShadowConfigs()