ProceduralPlanets
ProceduralPlanets.PlanetStatic Class Referenceabstract

This is the base class for static planets. Static planets have been baked from a procedural planet and can no longer be changed. Solid and Gas static planets derive from this class. More...

Public Attributes

int meshLODLevel
 
MeshFilter meshFilter
 
int meshSubdivisions = 6
 

Protected Member Functions

abstract void Awake ()
 
virtual void Update ()
 Updates local star position and checks if any textures need to be rebuilt. This happens every frame. More...
 
virtual void UpdateShaderLocalStar (bool _forceUpdate)
 Updates the shader to take into account the properties of a local star in the scene (e.g. position, intensity, color of star). Used for lighting and shadows. More...
 

Protected Attributes

const string PLANET_VERSION = "1.0"
 
MeshRenderer _meshRenderer
 
int _shaderID_LocalStarPosition
 
int _shaderID_LocalStarColor
 
int _shaderID_LocalStarIntensity
 
int _shaderID_LocalStarAmbientIntensity
 
LocalStar.ShaderCacheSettings _localStarShaderCacheSettings
 
LocalStar _localStarNearestInstance
 
Vector3 _lastPosition
 

Detailed Description

This is the base class for static planets. Static planets have been baked from a procedural planet and can no longer be changed. Solid and Gas static planets derive from this class.

Version 1.0 - 2018 (c) Imphenzia AB - Author: Stefan Persson

Inheritance diagram for ProceduralPlanets.PlanetStatic:
ProceduralPlanets.GasPlanetStatic ProceduralPlanets.SolidPlanetStatic

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