Package mindustry.graphics.g3d
Class PlanetRenderer
java.lang.Object
mindustry.graphics.g3d.PlanetRenderer
- All Implemented Interfaces:
Disposable
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal Mesh
final VertexBatch3D
Raw vertex batch.final Bloom
static final Color
final Camera3D
Camera used for rendering.static final float
static final Color
final Mat3D
static final Color
static final float
final PlaneBatch3D
static final Color
final CubemapMesh
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Releases all resources of this object.void
void
void
drawArc
(Planet planet, Vec3 a, Vec3 b, Color from, Color to, float length, float timeScale, int pointCount) void
drawBorders
(Sector sector, Color base, float alpha) void
void
drawSelection
(Sector sector, float alpha) void
drawSelection
(Sector sector, 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
-
hoverColor
-
borderColor
-
shadowColor
-
cam
Camera used for rendering. -
batch
Raw vertex batch. -
projector
-
mat
-
bloom
-
atmosphere
-
skybox
-
-
Constructor Details
-
PlanetRenderer
public PlanetRenderer()
-
-
Method Details
-
render
Render the entire planet scene to the screen. -
renderPlanet
-
renderTransparent
-
renderOrbit
-
renderSectors
-
drawArc
-
drawArc
-
drawArc
-
drawBorders
-
drawPlane
-
setPlane
-
fill
-
drawSelection
-
drawSelection
-
dispose
public void dispose()Description copied from interface:Disposable
Releases all resources of this object.- Specified by:
dispose
in interfaceDisposable
-