Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
ConeVolumeOcclusion Class Reference
Inheritance diagram for ConeVolumeOcclusion:
VolumetricObjectBase

Public Member Functions

override bool HasChanged ()
 
override void PopulateShaderName ()
 
override void UpdateVolume ()
 
- Public Member Functions inherited from VolumetricObjectBase
Mesh CopyMesh (Mesh original)
 
Mesh CreateCube ()
 
void ScaleMesh (Mesh mesh, Vector3 scaleFactor)
 
void ScaleMesh (Mesh mesh, Vector3 scaleFactor, Vector3 addVector)
 
void SetupUnitVerts ()
 

Public Attributes

float coneAngle = 30f
 
float coneHeight = 2f
 
int occlusionTextureSize = 128
 
float startOffset = 0f
 
- Public Attributes inherited from VolumetricObjectBase
Texture3D texture = null
 
Vector3 textureMovement = new Vector3(0f, -0.1f, 0f)
 
float textureScale = 1f
 
float visibility = 3.0f
 
Color volumeColor = new Color(1.0f, 1.0f, 1.0f, 1.0f)
 
string volumeShader = ""
 

Protected Member Functions

override void CleanUp ()
 
override void OnEnable ()
 
override void SetChangedValues ()
 
- Protected Member Functions inherited from VolumetricObjectBase
virtual void OnDestroy ()
 
virtual void OnDisable ()
 

Additional Inherited Members

- Protected Attributes inherited from VolumetricObjectBase
Vector3 forcedLocalScale = Vector3.one
 
Material materialInstance = null
 
Mesh meshInstance = null
 
Texture3D previousTexture = null
 
Vector3 previousTextureMovement = new Vector3(0f, 0.1f, 0f)
 
float previousTextureScale = 10f
 
float previousVisibility = 1.0f
 
Color previousVolumeColor = new Color(1.0f, 1.0f, 1.0f, 1.0f)
 
Transform thisTransform = null
 
Vector3[] unitVerts = new Vector3[8]
 
Material volumetricMaterial = null
 

Member Function Documentation

override void ConeVolumeOcclusion.CleanUp ( )
inlineprotectedvirtual

Reimplemented from VolumetricObjectBase.

override bool ConeVolumeOcclusion.HasChanged ( )
inlinevirtual

Reimplemented from VolumetricObjectBase.

override void ConeVolumeOcclusion.OnEnable ( )
inlineprotectedvirtual

Reimplemented from VolumetricObjectBase.

override void ConeVolumeOcclusion.PopulateShaderName ( )
inlinevirtual

Reimplemented from VolumetricObjectBase.

override void ConeVolumeOcclusion.SetChangedValues ( )
inlineprotectedvirtual

Reimplemented from VolumetricObjectBase.

override void ConeVolumeOcclusion.UpdateVolume ( )
inlinevirtual

Reimplemented from VolumetricObjectBase.

Member Data Documentation

float ConeVolumeOcclusion.coneAngle = 30f
float ConeVolumeOcclusion.coneHeight = 2f
int ConeVolumeOcclusion.occlusionTextureSize = 128
float ConeVolumeOcclusion.startOffset = 0f

The documentation for this class was generated from the following file: