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
SphereVolume Class Reference
Inheritance diagram for SphereVolume:
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 Brightness = 1.0f
 
float Contrast = 1.9f
 
float radius = 3.0f
 
float radiusPower = 1.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 OnEnable ()
 
override void SetChangedValues ()
 
- Protected Member Functions inherited from VolumetricObjectBase
virtual void CleanUp ()
 
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 bool SphereVolume.HasChanged ( )
inlinevirtual

Reimplemented from VolumetricObjectBase.

override void SphereVolume.OnEnable ( )
inlineprotectedvirtual

Reimplemented from VolumetricObjectBase.

override void SphereVolume.PopulateShaderName ( )
inlinevirtual

Reimplemented from VolumetricObjectBase.

override void SphereVolume.SetChangedValues ( )
inlineprotectedvirtual

Reimplemented from VolumetricObjectBase.

override void SphereVolume.UpdateVolume ( )
inlinevirtual

Reimplemented from VolumetricObjectBase.

Member Data Documentation

float SphereVolume.Brightness = 1.0f
float SphereVolume.Contrast = 1.9f
float SphereVolume.radius = 3.0f
float SphereVolume.radiusPower = 1.0f

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