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
BoxVolume Class Reference
Inheritance diagram for BoxVolume:
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

Vector3 boxSize = Vector3.one * 5f
 
- 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 BoxVolume.HasChanged ( )
inlinevirtual

Reimplemented from VolumetricObjectBase.

override void BoxVolume.OnEnable ( )
inlineprotectedvirtual

Reimplemented from VolumetricObjectBase.

override void BoxVolume.PopulateShaderName ( )
inlinevirtual

Reimplemented from VolumetricObjectBase.

override void BoxVolume.SetChangedValues ( )
inlineprotectedvirtual

Reimplemented from VolumetricObjectBase.

override void BoxVolume.UpdateVolume ( )
inlinevirtual

Reimplemented from VolumetricObjectBase.

Member Data Documentation

Vector3 BoxVolume.boxSize = Vector3.one * 5f

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