Package mindustry.graphics.g3d
Class PlanetRenderer
java.lang.Object
mindustry.graphics.g3d.PlanetRenderer
- All Implemented Interfaces:
arc.util.Disposable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal arc.graphics.Mesh
final arc.graphics.g3d.VertexBatch3D
Raw vertex batch.final arc.graphics.g2d.Bloom
static final arc.graphics.Color
final arc.graphics.g3d.Camera3D
Camera used for rendering.static final float
static final arc.graphics.Color
final arc.math.geom.Mat3D
static final arc.graphics.Color
static final float
final arc.graphics.g3d.PlaneBatch3D
static final arc.graphics.Color
final CubemapMesh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
void
void
drawArc
(Planet planet, arc.math.geom.Vec3 a, arc.math.geom.Vec3 b, arc.graphics.Color from, arc.graphics.Color to, float length) void
drawArc
(Planet planet, arc.math.geom.Vec3 a, arc.math.geom.Vec3 b, arc.graphics.Color from, arc.graphics.Color to, float length, float timeScale, int pointCount) void
drawBorders
(Sector sector, arc.graphics.Color base, float alpha) void
void
drawSelection
(Sector sector, float alpha) void
drawSelection
(Sector sector, arc.graphics.Color color, float stroke, float length) void
void
render
(PlanetParams params) Render the entire planet scene to the screen.void
renderOrbit
(Planet planet, PlanetParams params) void
renderPlanet
(Planet planet, PlanetParams params) void
renderSectors
(Planet planet, PlanetParams params) void
renderTransparent
(Planet planet, PlanetParams params) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface arc.util.Disposable
isDisposed
-
Field Details
-
outlineRad
public static final float outlineRad- See Also:
-
camLength
public static final float camLength- See Also:
-
outlineColor
public static final arc.graphics.Color outlineColor -
hoverColor
public static final arc.graphics.Color hoverColor -
borderColor
public static final arc.graphics.Color borderColor -
shadowColor
public static final arc.graphics.Color shadowColor -
cam
public final arc.graphics.g3d.Camera3D camCamera used for rendering. -
batch
public final arc.graphics.g3d.VertexBatch3D batchRaw vertex batch. -
projector
public final arc.graphics.g3d.PlaneBatch3D projector -
mat
public final arc.math.geom.Mat3D mat -
bloom
public final arc.graphics.g2d.Bloom bloom -
atmosphere
public final arc.graphics.Mesh atmosphere -
skybox
-
-
Constructor Details
-
PlanetRenderer
public PlanetRenderer()
-
-
Method Details
-
render
Render the entire planet scene to the screen. -
renderPlanet
-
renderTransparent
-
renderOrbit
-
renderSectors
-
drawArc
-
drawArc
public void drawArc(Planet planet, arc.math.geom.Vec3 a, arc.math.geom.Vec3 b, arc.graphics.Color from, arc.graphics.Color to, float length) -
drawArc
public void drawArc(Planet planet, arc.math.geom.Vec3 a, arc.math.geom.Vec3 b, arc.graphics.Color from, arc.graphics.Color to, float length, float timeScale, int pointCount) -
drawBorders
-
drawPlane
-
setPlane
-
fill
-
drawSelection
-
drawSelection
-
dispose
public void dispose()- Specified by:
dispose
in interfacearc.util.Disposable
-