Package mindustry.graphics.g3d
Class PlanetParams
java.lang.Object
mindustry.graphics.g3d.PlanetParams
Parameters for rendering a solar system.
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
If true, atmosphere will be drawn regardless of player options.arc.math.geom.Vec3
the unit length direction vector of the cameraarc.math.geom.Vec3
Camera direction relative to the planet.arc.math.geom.Vec3
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.arc.math.geom.Vec3
If not null, this is the position of the "previous" planet for smooth camera movement.Planet being looked at.Handles drawing details.float
Alpha of orbit rings and other UI elements.int
Viewport size.int
Viewport size.float
Zoom relative to planet. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
camPos
public arc.math.geom.Vec3 camPosCamera direction relative to the planet. Length is determined by zoom. -
otherCamPos
@Nullable public arc.math.geom.Vec3 otherCamPosIf not null, this is the position of the "previous" planet for smooth camera movement. -
otherCamAlpha
public float otherCamAlphaInterpolation value for otherCamPos. -
camUp
public arc.math.geom.Vec3 camUpCamera up vector. -
camDir
public arc.math.geom.Vec3 camDirthe unit length direction vector of the camera -
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()
-