Package mindustry.graphics.g3d
Class PlanetParams
java.lang.Object
mindustry.graphics.g3d.PlanetParams
Parameters for rendering a solar system.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
If true, atmosphere will be drawn regardless of player options.the unit length direction vector of the cameraCamera direction relative to the planet.Camera up vector.boolean
If true, a space skybox is drawn.boolean
If false, orbit and sector grid are not drawn.float
Interpolation value for otherCamPos.If not null, this is the position of the "previous" planet for smooth camera movement.Planet being looked at.Handles drawing details.Deprecated.float
Alpha of orbit rings and other UI elements.int
Viewport size.int
Viewport size.float
Zoom relative to planet. -
Constructor Summary
-
Method Summary
-
Field Details
-
camPos
Camera direction relative to the planet. Length is determined by zoom. -
otherCamPos
If not null, this is the position of the "previous" planet for smooth camera movement. -
otherCamAlpha
public float otherCamAlphaInterpolation value for otherCamPos. -
camUp
Camera up vector. -
camDir
the unit length direction vector of the camera -
solarSystem
Deprecated.The sun/main planet of the solar system from which everything is rendered. Deprecated use planet.solarSystem instead -
planet
Planet being looked at. -
zoom
public float zoomZoom relative to planet. -
uiAlpha
public float uiAlphaAlpha of orbit rings and other UI elements. -
drawUi
public boolean drawUiIf false, orbit and sector grid are not drawn. -
drawSkybox
public boolean drawSkyboxIf true, a space skybox is drawn. -
renderer
Handles drawing details. -
viewW
public transient int viewWViewport size. <=0 to use screen size. Do not change in rules. -
viewH
public transient int viewHViewport size. <=0 to use screen size. Do not change in rules. -
alwaysDrawAtmosphere
public transient boolean alwaysDrawAtmosphereIf true, atmosphere will be drawn regardless of player options.
-
-
Constructor Details
-
PlanetParams
public PlanetParams()
-