Class CelestialBodyRing
- Namespace
- KSP.Rendering
- Assembly
- Assembly-CSharp.dll
[DisableCustomEditorBase]
public class CelestialBodyRing : KerbalMonoBehaviour
- Inheritance
-
CelestialBodyRing
- Inherited Members
-
- Extension Methods
-
Constructors
CelestialBodyRing()
public CelestialBodyRing()
Fields
alphaEdge
Field Value
- float
boundsShift
Field Value
- float
innerRadius
Field Value
- float
innerRadiusMesh
public float innerRadiusMesh
Field Value
- float
mesh
Field Value
- Mesh
outerRadius
Field Value
- float
outerRadiusMesh
public float outerRadiusMesh
Field Value
- float
radiusDetail
Field Value
- int
ringPlanePhysics
public Plane ringPlanePhysics
Field Value
- Plane
ringPlanePhysicsPos
public Vector3 ringPlanePhysicsPos
Field Value
- Vector3
ringShader
Field Value
- Shader
ringTexture
public Texture ringTexture
Field Value
- Texture
scatteringMie
public float scatteringMie
Field Value
- float
scatteringStrength
public float scatteringStrength
Field Value
- float
segmentDetail
Field Value
- int
segments
Field Value
- int
Properties
ringPlane
public Plane ringPlane { get; }
Property Value
- Plane
Methods
AddParticleField()
public void AddParticleField()
DependentDisable()
public void DependentDisable()
DependentEnable()
public void DependentEnable()
EnableModels()
public void EnableModels()
GetModels()
public List<CelestialBodyRingModel> GetModels()
Returns
- List<CelestialBodyRingModel>
GetParticleFields()
public List<GameObject> GetParticleFields()
Returns
- List<GameObject>
GetRingGroup()
public CelestialBodyRingGroup GetRingGroup()
Returns
- CelestialBodyRingGroup
Init(CelestialBodyRingGroup, CelestialBodyRingData, double)
public void Init(CelestialBodyRingGroup ringGroup, CelestialBodyRingData coreRingData, double bodyRadius)
Parameters
ringGroup CelestialBodyRingGroup
coreRingData CelestialBodyRingData
bodyRadius double
RegenerateMesh()
public void RegenerateMesh()
SetLightingTex(Texture)
public virtual void SetLightingTex(Texture tex)
Parameters
tex Texture
SetSourceLight(Light)
public virtual void SetSourceLight(Light light)
Parameters
light Light
SetSourceLightingValues(Light)
public void SetSourceLightingValues(Light light)
Parameters
light Light
UpdateMaterial()
public virtual void UpdateMaterial()
UpdateMesh()
UpdateModels()
public void UpdateModels()