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 | Protected Attributes | List of all members
VolumetricObjectBase Class Reference
Inheritance diagram for VolumetricObjectBase:
BoxVolume ConeVolume ConeVolumeOcclusion SphereVolume

Public Member Functions

Mesh CopyMesh (Mesh original)
 
Mesh CreateCube ()
 
virtual bool HasChanged ()
 
virtual void PopulateShaderName ()
 
void ScaleMesh (Mesh mesh, Vector3 scaleFactor)
 
void ScaleMesh (Mesh mesh, Vector3 scaleFactor, Vector3 addVector)
 
void SetupUnitVerts ()
 
virtual void UpdateVolume ()
 

Public Attributes

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

virtual void CleanUp ()
 
virtual void OnDestroy ()
 
virtual void OnDisable ()
 
virtual void OnEnable ()
 
virtual void SetChangedValues ()
 

Protected Attributes

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

virtual void VolumetricObjectBase.CleanUp ( )
inlineprotectedvirtual

Reimplemented in ConeVolumeOcclusion.

Mesh VolumetricObjectBase.CopyMesh ( Mesh  original)
inline
Mesh VolumetricObjectBase.CreateCube ( )
inline
virtual bool VolumetricObjectBase.HasChanged ( )
inlinevirtual
virtual void VolumetricObjectBase.OnDestroy ( )
inlineprotectedvirtual
virtual void VolumetricObjectBase.OnDisable ( )
inlineprotectedvirtual
virtual void VolumetricObjectBase.OnEnable ( )
inlineprotectedvirtual
virtual void VolumetricObjectBase.PopulateShaderName ( )
inlinevirtual
void VolumetricObjectBase.ScaleMesh ( Mesh  mesh,
Vector3  scaleFactor 
)
inline
void VolumetricObjectBase.ScaleMesh ( Mesh  mesh,
Vector3  scaleFactor,
Vector3  addVector 
)
inline
virtual void VolumetricObjectBase.SetChangedValues ( )
inlineprotectedvirtual
void VolumetricObjectBase.SetupUnitVerts ( )
inline
virtual void VolumetricObjectBase.UpdateVolume ( )
inlinevirtual

Member Data Documentation

Vector3 VolumetricObjectBase.forcedLocalScale = Vector3.one
protected
Material VolumetricObjectBase.materialInstance = null
protected
Mesh VolumetricObjectBase.meshInstance = null
protected
Texture3D VolumetricObjectBase.previousTexture = null
protected
Vector3 VolumetricObjectBase.previousTextureMovement = new Vector3(0f, 0.1f, 0f)
protected
float VolumetricObjectBase.previousTextureScale = 10f
protected
float VolumetricObjectBase.previousVisibility = 1.0f
protected
Color VolumetricObjectBase.previousVolumeColor = new Color(1.0f, 1.0f, 1.0f, 1.0f)
protected
Texture3D VolumetricObjectBase.texture = null
Vector3 VolumetricObjectBase.textureMovement = new Vector3(0f, -0.1f, 0f)
float VolumetricObjectBase.textureScale = 1f
Transform VolumetricObjectBase.thisTransform = null
protected
Vector3 [] VolumetricObjectBase.unitVerts = new Vector3[8]
protected
float VolumetricObjectBase.visibility = 3.0f
Color VolumetricObjectBase.volumeColor = new Color(1.0f, 1.0f, 1.0f, 1.0f)
string VolumetricObjectBase.volumeShader = ""
Material VolumetricObjectBase.volumetricMaterial = null
protected

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