Class VesselVFXManagerBase
- Namespace
- KSP.VFX
- Assembly
- Assembly-CSharp.dll
public class VesselVFXManagerBase
- Inheritance
-
VesselVFXManagerBase
- Derived
-
- Inherited Members
-
- Extension Methods
-
Constructors
VesselVFXManagerBase(EffectQuality, VesselBehavior)
public VesselVFXManagerBase(VesselVFXManagerBase.EffectQuality effectQuality, VesselBehavior vessel)
Parameters
effectQuality VesselVFXManagerBase.EffectQuality
vessel VesselBehavior
Fields
CmdBufferName
protected string CmdBufferName
Field Value
- string
ComputeDepthMult
public float ComputeDepthMult
Field Value
- float
ComputeThreadSize
protected int ComputeThreadSize
Field Value
- int
DepthBlurShaderPath
protected string DepthBlurShaderPath
Field Value
- string
DepthCamBoundsMult
protected float DepthCamBoundsMult
Field Value
- float
DepthCamNearMult
protected float DepthCamNearMult
Field Value
- float
DepthCamScale
protected Vector3 DepthCamScale
Field Value
- Vector3
DepthOnlyShaderPath
protected string DepthOnlyShaderPath
Field Value
- string
EnableDownscaleBlur
public bool EnableDownscaleBlur
Field Value
- bool
EnableParticleFX
public bool EnableParticleFX
Field Value
- bool
Game
protected GameInstance Game
Field Value
- GameInstance
JumpFloodAlgoShaderPath
protected string JumpFloodAlgoShaderPath
Field Value
- string
MaterialPath
protected string MaterialPath
Field Value
- string
MeshDepthMuliplier
public float MeshDepthMuliplier
Field Value
- float
MeshDepthScale
protected float MeshDepthScale
Field Value
- float
MeshDistanceOffset
public float MeshDistanceOffset
Field Value
- float
MeshScale
protected float MeshScale
Field Value
- float
MeshScaleFactor
protected float MeshScaleFactor
Field Value
- float
MeshScaleMultiplier
public float MeshScaleMultiplier
Field Value
- float
VFXCameraLayer
protected int VFXCameraLayer
Field Value
- int
VFXGameObject
protected GameObject VFXGameObject
Field Value
- GameObject
Vessel
protected VesselBehavior Vessel
Field Value
- VesselBehavior
VfxBufferSize
protected int VfxBufferSize
Field Value
- int
VfxPrefabPath
public string VfxPrefabPath
Field Value
- string
VfxQuality
Field Value
- int
_cmdBuffer
protected CommandBuffer _cmdBuffer
Field Value
- CommandBuffer
_currentQuality
protected VesselVFXManagerBase.EffectQuality _currentQuality
Field Value
- VesselVFXManagerBase.EffectQuality
_debugFX
Field Value
- bool
_debugResetMesh
protected bool _debugResetMesh
Field Value
- bool
_depthBlurMat
protected Material _depthBlurMat
Field Value
- Material
_depthOnlyMat
protected Material _depthOnlyMat
Field Value
- Material
_jumpFloodMaterial
protected Material _jumpFloodMaterial
Field Value
- Material
_meshVertices
protected Vector3[] _meshVertices
Field Value
- Vector3[]
_particleSystem
protected ParticleSystem _particleSystem
Field Value
- ParticleSystem
_vesselBounds
protected Bounds _vesselBounds
Field Value
- Bounds
_vesselBoundsMaxExtent
protected float _vesselBoundsMaxExtent
Field Value
- float
_vesselBoundsMaxSize
protected float _vesselBoundsMaxSize
Field Value
- float
_vesselDir
protected Vector3 _vesselDir
Field Value
- Vector3
protected Transform _vfxCamTransform
Field Value
- Transform
_vfxDepthTexture
protected RenderTexture _vfxDepthTexture
Field Value
- RenderTexture
_vfxIntensity
protected float _vfxIntensity
Field Value
- float
_vfxMaterial
protected Material _vfxMaterial
Field Value
- Material
_vfxMesh
Field Value
- Mesh
_vfxMeshGO
protected GameObject _vfxMeshGO
Field Value
- GameObject
_vfxMeshScale
protected Vector3 _vfxMeshScale
Field Value
- Vector3
Properties
IsActive
public bool IsActive { get; }
Property Value
- bool
IsSpawning
public bool IsSpawning { get; }
Property Value
- bool
VFXIntensity
public float VFXIntensity { get; }
Property Value
- float
Methods
CalculateSetIntensity()
protected virtual void CalculateSetIntensity()
CheckCondition(FXContextData)
public virtual bool CheckCondition(FXContextData context)
Parameters
context FXContextData
Returns
- bool
CreateComputeResources()
protected virtual void CreateComputeResources()
CreateEvent(FXContextualEventParams, FXPartContextData, VesselBehavior)
protected virtual FXContextualEvent CreateEvent(FXContextualEventParams fxContextualEventParams, FXPartContextData fxPartContextData, VesselBehavior vessel)
Parameters
fxContextualEventParams FXContextualEventParams
fxPartContextData FXPartContextData
vessel VesselBehavior
Returns
- FXContextualEvent
DrawGizmos()
GUIDraw()
GenerateMesh()
protected virtual void GenerateMesh()
PositionCameraAndMesh()
protected virtual void PositionCameraAndMesh()
Reset()
public virtual void Reset()
SetParameters()
protected virtual void SetParameters()
SetupParticleSystem(GameObject)
protected virtual void SetupParticleSystem(GameObject prefab)
Parameters
prefab GameObject
SpawnVFX(GameObject)
public virtual void SpawnVFX(GameObject particlePrefab)
Parameters
particlePrefab GameObject
UpdateEvent(FXContextData)
public virtual void UpdateEvent(FXContextData context)
Parameters
context FXContextData
UpdateVFX(EffectQuality, PQS)
public virtual void UpdateVFX(VesselVFXManagerBase.EffectQuality effectQuality, PQS pqs)
Parameters
effectQuality VesselVFXManagerBase.EffectQuality
pqs PQS